Re: Repository layout multiple modules under same tags branches dirrectory

Michael Haggerty <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
On 07/13/2011 11:43 AM, Amouzou, Afi wrote:
> Hello,
> I need help with the proper settings to create the desired svn directory
> structure.
> I have multiple cvs projects:
>    pA
>    pB
>    pC
>    pD
> 
> I'd like to convert them into 1 svn with a structure like this:
> 
>   repo/trunk/pA
>   repo/trunk/pB
>   repo/trunk/pC
> 
>   repo/tags/pA/<tags​>/<subdirs​>/...
>   repo/tags/pB/<tags​>/<subdirs​>/...
>   repo/tags/pC/<tags​>/<subdirs​>/...
> repo/tags/pAD<tags​>/<subdirs​>/...
> 
>   repo/branches/pA/<br​anches>/<sub​dirs>/...
>   repo/branches/pB/<br​anches>/<sub​dirs>/...
>   repo/branches/pC/<br​anches>/<sub​dirs>/...
>   repo/branches/pD/<br​anches>/<sub​dirs>/...
>  
> I read this message from
> _http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2602636_
> <http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2602636>
> and use this setting in option file:
> run_optiona.add_project(
> r’ /path/to/cvs repo’,
> trunk_path=’/trunk’,
> branches_path=’/branches’,
> tags_path=’/tags’)
>  
> And I get this Strukture
>  
>   repo/trunk/pA  pass
>   repo/trunk/pB pass
>   repo/trunk/pC  pass
> 
>   repo/tags/<tags​>/pA/<subdirs​>/...            should be
> repo/tags/pA/<tags​>/<subdirs​>/...
>   repo/tags /<tags​>/pB/ <subdirs​>/...
>   ...
> 
>   repo/branches /<br​anches>/pA/<sub​dirs>/...  should be
> repo/branches/pA/<br​anches>/<sub​dirs>/...
>  repo/branches /<br​anches>/pB/<sub​dirs>/...
>   ...
>  
> How can I have all the Tags/branches related to a project put together
> in one directory with the project name: like repo/tags/pA/<tags​
>>/<subdirs​>/...

You need to configure cvs2svn to treat these as separate projects;
something like

run_options.add_project(
    r'/path/to/cvs_repo/pA',
    trunk_path='trunk/pA',
    branches_path='branches/pA',
    tags_path='tags/pA',
    ...
    )
run_options.add_project(
    r'/path/to/cvs_repo/pB',
    trunk_path='trunk/pB',
    branches_path='branches/pB',
    tags_path='tags/pB',
    ...
    )
etc.

Michael

-- 
Michael Haggerty
[email protected]
http://softwareswirl.blogspot.com/

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

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.