Re: SVN bridge for multiple SVN modules

Previous thread: Update on SoC proposal: git-remote-svn by Ramkumar Ramachandra on Monday, April 12, 2010 - 10:29 pm. (6 messages)

Next thread: Replication of shared repositories by cdossantos on Tuesday, April 13, 2010 - 12:45 am. (2 messages)
From: Richard Dallaway
Date: Tuesday, April 13, 2010 - 12:34 am

Hello

We've run into something we'd like to do with "git svn clone" that
looks like it should work, but doesn't appear to.

The task: we have an SVN repository with 38 modules in it (each with
their own branches, tags, and trunk) and we'd like to pull just two of
the modules into a single git repository -- but maintain the ability
to perform git svn rebase/fetch/dcommit as the SVN repository is
remaining active for some developers.

It looks like we should be able to point at the parent of the SVN
modules and use --ignore-paths=/a long regexp/  to do the job, but
we've not managed to get it to work yet and we're now wondering if
we're missing a few concepts in the git/svn bridging concepts. Or
maybe we've just not got the syntax right yet.

There's a related question we spotted on stackoverflow that indicates
this isn't possible:

http://stackoverflow.com/questions/898568/multiple-svn-projects-into-one-git-repository

If that is the case (can anyone confirm?), is there a way we can do
this by pulling each SVN module into a separate intermediate git
repository, then doing "something" to push on to our target single
repository.... a "something" that would still enable us to git svn
fetch and git svn dcommit back to the SVN repo?

Suggestions, clues, explanations all very welcome.

Regards
Richard
--

From: Steven Michalske
Date: Tuesday, April 13, 2010 - 11:08 pm

Would setting up two git repositories cloning the SVN from the  
module_a and module_b directories and then making them as a git  
submodules is a git super project repository?

--

From: Richard Dallaway
Date: Wednesday, April 14, 2010 - 5:43 am

Thank you - I'll take a look at that.

I'm surprised that the "git svn clone
--ignore-paths=/everything_except_the_two_I-Want/" doesn't solve the
problem: I don't understand why it doesn't, and would love to
understand this better if anyone has a way to explain it.

Cheers
Richard
--

Previous thread: Update on SoC proposal: git-remote-svn by Ramkumar Ramachandra on Monday, April 12, 2010 - 10:29 pm. (6 messages)

Next thread: Replication of shared repositories by cdossantos on Tuesday, April 13, 2010 - 12:45 am. (2 messages)