Re: Branches / Tags folders structure
olli hauer <[email protected]> Mon, 01 Oct 2012 21:04:42 +0200
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.user |
|---|---|
| Message-ID | <[email protected]> |
On 2012-10-01 12:39, Geppo Rello wrote:
> Hi,
> I have succesfully used CVS2SVN with the Options file to migrate a CVS
> repository.
> The only thing that I don't like it's the way the Branches and Tags folder
> have been structured i.e.
>
> branches/project1/branch1
> branches/project1/branch2
> branches/project1/branch3
>
> branches/project2/branch1
> branches/project2/branch2
> branches/project2/branch3
>
> How to I achieve the following structure?
>
> branches/branch1/project1
> branches/branch1/project2
>
> branches/branch2/project1
> branches/branch2/project2
>
> branches/branch3/project1
> branches/branch3/project2
>
> Many thanks!
If you look inside the options file template you can
find a section starting with
global_symbol_strategy_rules = [
...
and ~40 lines before this directive
ctx.symbol_info_filename = None
Change "None" to
ctx.symbol_info_filename = 'symbols-out.txt',
run $> cvs2svn -p 1:3 --options=YourOptionsFile
then copy symbol-out.txt to symbol-hints.txt.
Edit in symbol-hints.txt the forth column in the
lines starting with "0" so it match the new path,
write the following line into
global_symbol_strategy_rules = [
SymbolHintsFileRule('symbol-hints.txt'),
the `,' at the end of the line is important.
Now run the command
$> cvs2svn -p 3:16 --options=YourOptionsFile
and enjoy your new svn repo.
// olli
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=3011475
To unsubscribe from this discussion, e-mail: [[email protected]].