Non-unique tag names across projects that should not be merged during conversion to svn
Vasanth Velusamy <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have a repository where the tag names used across projects are not unique. But during migration to svn using cvs2svn, I would like to have one tag in svn for each tag in each project. From reading through the mailing list and looking at documentation, I don't see any straight forward way to do this. Let me give an example of the situation. I have two projects projA and projB in CVS. There would be tags named Build-1, Build-2, etc. in projA, also tags Build-1, Build-2, etc. in projB. When I run cvs2svn with -symbol-default at 'heuristic', the migration tool assumes that the tags used in projA and projB which have the same name are the same, and merges them and creates one tag each for Build-1, Build-2, etc. in svn. What I need is something like ProjA-Build-1, ProjB-Build-1, ProjA-Build-2, ProjB-Build-2, etc. in svn. 'heuristic' doesn't do that. Seems like the other symbol-default options (strict, branch, tag) are not going to be helpful here either. After digging a bit into the code, I see that there are classes named SymbolMapper, SubtreeSymbolMapper, which seem relevant. Especially SubtreeSymbolMapper which seems very promising. Here is the documentation in that class: The user has to specify a CVS repository path (a filename or directory) and the original symbol name. All symbols under that path will be renamed to the specified new name (which can be None if the symbol should be ignored). The mappings can be set via a constructor argument or by calling __setitem__(). Only the most specific rule is applied.""" So, my question is, am I on the right track? If so, how do I use this class? Is there something I need to add to the options file to make the migration tool use this? Thanks, Vasanth ------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2774809 To unsubscribe from this discussion, e-mail: [[email protected]].