Page 1 of 1

CLI RENAME and COMMIT

Posted: Wed Nov 30, 2016 11:09 am
by ymett
I'm using Vault 7.2.0 and and I'd like to make various changes including file renames, and then commit them, using the command line. The COMMIT command takes a list of files to commit, which works fine for changes but doesn't seem to work for renames - neither the original name nor the new name work. How can I specify the rename to be committed?

Also the help claims that -verbose provides more information about modified files in the change set which were omitted from the transaction - but it appears to have no effect.

Re: CLI RENAME and COMMIT

Posted: Wed Nov 30, 2016 2:03 pm
by jclausius
You could try to do the rename using the -COMMIT option during the rename operation itself, and that will commit the rename change set item automatically.

Otherwise, it appears as if you will need the change set item's ID. Using LISTCHANGESET, you should be able to see the id of rename, to commit just that item, use the integer ID as the argument. For example: vaule.exe -server ... -repository ... commit 1


The -verbose option will report any change set items on checked out files that were meant to be committed, but were skipped due to various reasons. For example, the checked out file was not modified and the option is to leave unmodified files checked out. Or the file is checked out but missing.

Re: CLI RENAME and COMMIT

Posted: Thu Dec 01, 2016 4:42 am
by ymett
Thanks, that works.

Re: CLI RENAME and COMMIT

Posted: Thu Dec 01, 2016 8:34 am
by jclausius
Glad that worked out.