Can you have 2 VCS roots, which are pulled down into different places?

I have a build where I have the usual single Subversion root pulled down for the build.  Let's say it is pulled down into C:\MainFolder.  I have a need to have another Subversion pull, into another folder.  Let's say I would like it to be pulled into C:\SecondaryFolder.  I have tried adding a second VCS root, but it just deletes everything in my MainFolder from the first pull.  I then tried to add a checkout rule to the effect of "+:.=>C:\SecondaryFolder" which I thought would work, but it still deleted everything in the MainFolder.

Am I doing something wrong?  Is it even possible to have 2 separate VCS roots pulling down each into it's own folder?

When I am done pulling, I want to have this:

C:\MainFolder\StuffA
C:\SecondardFolder\StuffB

3 comments
Comment actions Permalink

Absolute paths are not supported in the right part of the checkout rule. However you can do the following: define checkout directory to be, say: C:\ParentDir, then add checkout rules with relative right parts:
+:.=>MainFolder
+:.=>SecondaryFolder

0
Comment actions Permalink

Thank you.  This worked great for me.  I never thought of doing it this way.

0
Comment actions Permalink

Actually, if absolute path of checkout directory does not matter, it is better to leave checkout directory empty (to allow TeamCity to generate name for it). This way TeamCity will be able to optimize disk usage on the agent.

0

Please sign in to leave a comment.