On Thu, Apr 03, 2014 at 10:28:12AM -0700, Phil Cruz wrote:
> I need some guidance on how to import our existing SVN repo to Git. The 
> structure of the repo is not exactly standard. Say we have 2 versions of 
> our app in the repo, Version1, the currently shipping version and Version2, 
> the next version in development. The SVN structure is like
> /branches
>     /Version1_some_branch
>     /Version2_feature_branch1
> /tags
>     /Version1
>         /build_1
>         /build_2
>     /Version2
>         /build_1
> /releases
>     /Version1
>         /Release_1.0
>         /Releale_1.1
> /trunk
>     /Version1
>     /Version2
> There's actually more but this conveys the basic structure. I'm fine
> with not trying to migrate the entire repo with all the history and
> tags and releases. There's a lot of extraneous stuff like binary
> files and I think we'll be better off to start relatively clean. If
> possible I would like to import the working trunks/branches with
> history. So something like
> /trunk/Version1 becomes the "master" branch
> /trunk/Version2 becomes "Version2" branch
> /branches/Version2_feature_branch1 becomes "Version2_feature_branch1"
> /branches/Version1_some_branch becomes "Version1_some_branch"
> Is there a way to do something like that?

I'd consider that layout very ordered and clean actually. :)

If you are looking at using git-svn for the conversion, then pay
notice to this part of the man-page:

  You can specify more than one --tags and/or --branches options, in
  case your Subversion repository places tags or branches under
  multiple paths. 

This seems to be exactly the thing you need.

If you are looking at using subgit then it too allows for picking up
tags and branches in multiple places.


Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

Goto labels should be left-aligned in all caps and should include the
programmer's name, home phone number, and credit card number.
     -- Abdul Nizar

Attachment: pgpUE3Wua1_zm.pgp
Description: PGP signature

Reply via email to