I am working on converting a CVS repository that has the following symbols (among others):
tcm-6.1.0-branch
-- a branch
tcm-6.1.0
-- a tag
Using the standard transformations cvs2svn identifies them properly. However, I'd like to do some clean up during the conversion. Specifically I'd like to drop the redundant '-branch' portion of the branch symbol, since it will be in the 'branches' dir in svn. I added the following to the symbol_transforms of the project:
RegexpSymbolTransform(r'(.*)-branch', r'\1')
Now I end up with " ERROR: Multiple definitions of the symbol 'tcm-6.1.0' in ..." for every file because tcm-6.1.0
is both a branch and a tag. I have several CVS symbol pairs that result in this problem.
It seems to me that since the source symbols are different and the destination directories are different this operation should be possible. Is there something I'm missing or is this simply a shortcoming of cvs2svn?
How can I rename these symbols such that they remain separate and result in a branch and a tag with the same name?
--
If there is no work around I will try to exclude the problem symbols from the conversion rules and move them by hand afterwards, though I'd rather do it at conversion time.