[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

cvs2svn changes for multipath support (Issue 1409)

From: Kim Lester <kim_at_dfusion.com.au>
Date: 2003-09-27 09:01:06 CEST

I have added support for multi-path components into cvs2svn.py.
(issue 1409?)
I've just finished coding and it all looks reasonable (ie doesn't crash :-))
so I'm letting people know. I won't release it until it has been tested
a bit better (ie appears to actually work correctly for my needs).
No promises but it is looking respectable.

It isn't a trivial problem because one has to support what amounts
to a mapping layer between between where the files are in CVS and where they
should appear in SVN and still be consistent with internal copyfrom ops etc.

Because I work with many "projects" in on CVS/SVN tree I needed
to be able to so the following:

  $CVSROOT/path_to_projects/projectA/
                                                proj. files....
                                    projectB/
                                                ...

 TO

  $SVNROOT/trunk/path_to_projects/projectA/
                                                      proj. files....
                                            projectB/
                                                        ...

 $SVNROOT/branches/path_to_projects/projectA/
                                                      BRANCH-1/...
                                                        BRANCH-2/...
                                            projectB/
                                                        ...

 $SVNROOT/tags/path_to_projects/projectA/
                                                      RELEASE_1_0/....
                                                        RELEASE_1_1/...
                                            projectB/
                                                        RELEASE_1_0/...
                                                        RELEASE_1_1/...

 Recognising that others might need the alternative system
 path_to_projects/trunk/blah
                     /branches/blah
                     /tags/blah

  I've implemented that too.
  cvs2svn.py has 2 new options --root=a/b/.. --subroot=x/y/..
  Note the --tags, --branches, --trunk are not needed and must only be
  single component paths, they are just to change the default names of those directories

  The above would produce in SVN: /a/b/trunk/x/y/blah and similarly for branches and tags

  My probable use will be
  foreach project
  {
         cvs2svn.py --subroot=x/y/$project $CVSROOT/x/y/$project
  }

  Note that I need to do one project at a time to prevent common cvs tags from
  being attached to more than one project. ie RELEASE_1_0 for project A has nothing
  todo with RELEASE_1_0 for project B.

  I'd suggest people use wither --root OR --subroot (ie simple repository layout).

  regards
        Kim

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 27 08:58:33 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.