threads / discuss / 23440

SVN bridge for multiple SVN modules

Subject: SVN bridge for multiple SVN modules

## tl;dr

3 messages between Apr 13, 2010 and Apr 14, 2010.

replies: 2people: 2as markdown or json

Richard Dallaway· Apr 13, 2010, 07:34 UTC · lore
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

Steven Michalske· Apr 14, 2010, 06:08 UTC · re: Richard Dallaway · lore

Re: SVN bridge for multiple SVN modules

On Apr 13, 2010, at 12:34 AM, Richard Dallaway wrote:
Show 11 quoted lines
> 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.
>

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?

Richard Dallaway· Apr 14, 2010, 12:43 UTC · re: Steven Michalske · lore

Re: SVN bridge for multiple SVN modules

On Wed, Apr 14, 2010 at 7:08 AM, Steven Michalske <smichalske@gmail.com> wrote:
> On Apr 13, 2010, at 12:34 AM, Richard Dallaway wrote:
> 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?
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

← back to recent threads