Add the property svn:externals

Per-Eric Wård <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <23EB70EF6638374D89AF0F2CF0D7857801BF220B@sed-eu-xch-01.eu.trimblecorp.net>
Hi.

How can I add the property svn:externals for every project that is converted from CVS when using cvs2svn?

Can I set it up in the run_options.add_project in the options file?


Here is a rough example of what I am trying to accomplish.


I have a CVS repository with the following module structure.

production
    common lib
    proj1
    proj2
    .
    .
    .


When working with the local copy using CVS I do like this today.

When checking out:
Check out module proj1 from CVS.
Open the proj1 folder.
Within the proj1 folder check out the common lib module from CVS


The local copy on my machine will then looks like this:

    proj1
        comon lib


When I tag the proj1 the comon lib also will be tagged with the same tag.
When getting updates from CVS for proj1 also comon lib will get updated.

I have used CVS2SVN to export the CVS production repositary.

The SVN repositary now look like this.
production
    common lib
        branches
        tags
            proj1-1_0_0
            proj1-1_0_1
            proj2-1_0_0
        trunk           
    proj1
        branches
        tags
            proj1-1_0_0
            proj1-1_0_1
        trunk
    proj2
        branches
        tags
            proj2-1_0_0
        trunk
    .
    .
    .

If I add the property 
svn:externals ^/comon%20lib/trunk "comon lib" 
to the svn project proj1/trunk when checking out proj1/trunk it will also check out the trunk of comon lib and make the local copy look like this.


    proj1
        comon lib

And if I add the property
svn:externals ^/comon%20lib/tags/proj1-1_0_0 "comon lib"
to the svn project proj1/tags/proj1-1_0_0 when checking out proj1/tags/proj1-1_0_0 it will also check out comon lib with the tag proj1-1_0_0 and make the local copy look like this.

proj1-1_0_0
        comon lib


And to avoid adding the property svn:externals by hand I would like to add it using cvs2svn.


Any help would be greatly appreciated.

/Per-Eric

(I was not able to reply to the original thread, there is no reply link to press.)

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

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.