About copy

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
vansree
Posts: 1
Joined: Mon Nov 09, 2009 1:09 pm

About copy

Post by vansree » Mon Nov 09, 2009 1:28 pm

Hi,

Copy the folder from one tree to other tree ... (Not branching)

We are using Vault 4.1.0. We are using both for source and also for deployment. We are small team but trying to maintain a process. Meaning ...
  • We created a tree like dev, test, live.
    Developers will work only on dev.
    We have multiple projects and the tree some what looks like...
    $\dev\Project1\SQL\Code\
    $\dev\Project1\Web\Code\
    $\dev\Releases - Dev2Test\
  • We have folder called "Releases - Dev2Test".
    $\dev\Releases - Dev2Test\
  • When Developer wants to publish, he will create new folder say "Req - 200", "Req - 201" ...
    Developer will have to copy the whole tree which he wants to publish to this tree.

    $\dev\Releases - Dev2Test\Req - 200\Project1\SQL\Code\...
    The reason we are keeping the whole tree, is to help understand different request as we have multiple projects in long term.
  • The build person will Copy the whole tree from $\dev\ to $\test\ and deploy it.
    ... he has to copy to $\test\Releases - Dev2Test\ (from $\dev\Releases - Dev2Test\Req - 200\Project1\SQL\Code\...)
    ... he informs to the person who requested about the deploy success. He then his routine check and informs to the build that go ahead to live.

    ... If every thing alright (after test build succeed), then the build guy creates $\live\Releases - Test2Live\ ..

    the above procedure is repeated for live - from test to live.
  • The approach is being used for quite some time and working fine.
Help looking: Is there a way, we can create script to copy. Like given a source tree location and destination tree location, we need to create destination folders, copy and check in the files automatically.

Thanks,

Sreedhar

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: About copy

Post by Beth » Mon Nov 09, 2009 4:49 pm

You could create a script for that. Using our Vault Command-Line Client you could have it perform a Get out to some folder and then add from that folder into a new destination into Vault.

If you aren't planning on making changes to the code in the copy,then you could also use the snapshot function. It creates a new folder with all the current files and pins it. If you need to pull over code, you can unpin it.

You might find it helpful to use labels as well. You can use them with your current method.
Beth Kieler
SourceGear Technical Support

Post Reply