multiple renames using command line

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

Moderator: SourceGear

Post Reply
vuser01
Posts: 18
Joined: Mon Feb 27, 2006 7:07 pm

multiple renames using command line

Post by vuser01 » Mon Aug 07, 2006 1:08 pm

I am trying to rename about 500 files within the repository using the command line and utilizing a batch file:

I have tried doing an individual file and I am not having much luck:

C:\Program Files\SourceGear\Vault Client>vault rename -host host -user user -password pass -repository "Repository" -comment "test" -commit $/software/qa/1.0.5/default.aspx $/software/qa/1.0.5/default_rn.aspx
<vault>
<changeset>
<Rename id="0" repospath="$/software/qa/1.0.5/default.aspx" newname="$/software
/qa/1.0.5/default_rn.aspx" />
</changeset>
<!-- Preparing data to begin transaction -->
<!-- Beginning transaction -->
<!-- Item $/software/qa/1.0.5/default.aspx caused the transaction to fail: The
object could not be found. It may have been deleted, moved or renamed. -->
<!-- Transaction failed -->
<result success="no" />
</vault>

Am I doing something wrong? Once this works, how can I implement it in a batch file?

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Mon Aug 07, 2006 1:27 pm

Try this command:

Code: Select all

vault rename -host host -user user -password pass -repository "Repository" -comment "test" -commit $/software/qa/1.0.5/default.aspx default_rn.aspx
Jeff Clausius
SourceGear

Post Reply