Choosing arbitrary locations for branches and tags

Jamma Tino Schwarze <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
Hi there,

I'm preparing a rather complex cvs2svn migration. We designed our SVN
repository layout to ease branching and merging - we want to have the
anchestry of branches visible. Therefore, our repository will look like
this (with c4u_tools being the actual project):

c4u/tools/MODULES/c4u_tools 
  -> this is former "HEAD"
c4u/tools/1.0/MODULES/c4u_tools 
  -> this is former "c4u_tools_1_0_branch"
c4u/tools/1.0/TAGS/laststable/MODULES/c4u_tools
c4u/tools/1.0/TAGS/nightlybuild_20090817/MODULES/c4u_tools
c4u/tools/1.0/1.1/MODULES/c4u_tools 
  -> this if former "c4u_tools_1_1_branch" which descended from 1.0
c4u/tools/1.0/1.1/TAGS/laststable/MODULES/c4u_tools
c4u/tools/1.0/1.1/TAGS/nightlybuild_20100101/MODULES/c4u_tools
c4u/tools/2.0/MODULES/c4u_tools
  -> this is former "c4u_tools_2_0_branch"

(The MODULES directory is there for the sake of consistence - we've got
projects which consist of multiple modules which we want to have all in
the same subdirectory while not mixing in the version number subdirs so
one may simply checkout the MODULES directory and get only the sources.)

Obviously, this scheme does not fit the project/{trunk,tags,branches}
scheme. If I use an OPTIONS file and specify

run_options.add_project(
    r'cvs-repository/c4u_tools',
    trunk_path='/c4u/tools/MODULES/c4u_tools',
    branches_path='/fromcvs/branches',
    tags_path='/fromcvs/tags',
    symbol_transforms=[
        RegexpSymbolTransform(r'c4u_tools_(\d+)_(\d+)_branch',
                              r'/c4u/tools/\1.\2/MODULES/c4u_tools'),
    ...]
    ...
]

The branches end up in /fromcvs/branches/c4u/tools/...

Is there a way to move symbols to arbitrary locations within the SVN
tree? I looked into SymbolTransforms but the branches_path seems to
always be prepended to the symbol name... I'd like to avoid converting 
first, then "svn move"ing around everything to keep my history nice and
avoid tree conflicts during merge.

Thanks,

Tino.

-- 
"What we nourish flourishes." - "Was wir nähren erblüht."

www.lichtkreis-chemnitz.de
www.tisc.de

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2447811

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.