git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SVN migration
@ 2010-06-16 23:02 William Hall
  2010-06-17  0:41 ` Steven Michalske
  2010-06-26 10:33 ` William Hall
  0 siblings, 2 replies; 10+ messages in thread
From: William Hall @ 2010-06-16 23:02 UTC (permalink / raw)
  To: git

Hi gitters,

Background - I'm trying to convince my company to ditch SVN for git - 
the usual story. So for the duration of a project I'll be running git 
and SVN in parallel - the idea being is that we will still commit to SVN 
(and update), but the development work internal to my team will be using 
git.

An absolute *must* is for the SVN repo to continue as the SCM authority 
- at least until I can persuade the company to switch to git permanently.

Here's some crap ascii art to show the situation,

--------------
| non-git dev |
--------------
      |
      |
   -------         ----------------
  |  SVN  |-------| git/SVN bridge |
   -------         ----------------
                         |
                   ---------------
                  | bare git Repo |
                   ---------------
                         |
          ------------------------------
          |              |              |
        dev_1          dev_2          dev 3


- the git/SVN bridge is a git repo created with git-svn-clone.

- the 'bare git' repo is a typical standard git repo and I'm keen for 
the developers to experience a 'normal' git environment and not have to 
worry about SVN interactions.

Am sure this problem has been considered many times before, but I cannot 
seem to find an effective solution.

The issue is the dcommit operation from the bridge. The rebase part of 
this re-writes the commit messages to include the SVN commit-ids which 
is nice, but screws up the push/pulls between the bridge and the bare repo.

One solution I've tried is to create a branch in the bridge that tracks 
the bare repo, and another branch to track the SVN server. If the 
branches are kept separate then I can git-cherry-pick to replay changes 
from one side to the other (or at least merge one-way). his is not ideal 
as I really should use git's merge facility. I'd like to guarantee that 
the sides are not diverging over time.

Actually I've tried all permutations of merges/rebases/update-ref, I 
always fall into the same trap that befits a rebase in conjunction with 
remote repositories.

I can live without tags and branches for the time being - I just want to 
get a robust workflow defined in the bridge for the SVN 'trunk' - ie 
read/writes in both directions.

If anyone can offer any advice then it would be hugely appreciated. 
Perhaps you'll say that it cannot be done, which would make the git sell 
much harder.

Hopefully by the end of this exercise git will have 800 more fans.

Many thanks

Will

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-07-04 22:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-16 23:02 SVN migration William Hall
2010-06-17  0:41 ` Steven Michalske
2010-06-17 10:33   ` William Hall
2010-06-17 16:27     ` William Hall
2010-06-21 21:12       ` Joshua Shrader
2010-06-21 22:26         ` William Hall
2010-06-26 10:33 ` William Hall
2010-07-03 11:37   ` David Bainbridge
2010-07-04 17:55     ` William Hall
2010-07-04 22:01       ` David Bainbridge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).