Command line diff

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

Moderator: SourceGear

Post Reply
slolife
Posts: 18
Joined: Wed Sep 10, 2008 11:48 am

Command line diff

Post by slolife » Thu Mar 04, 2010 12:55 pm

What I am doing wrong here:

"C:\Program Files\SourceGear\Vault Client\vault.exe" diff -host vault.mycompany.com -ssl -user myuser -password mypass -repository CodeRepo -vaultdiff "C:\Program Files\SourceGear\Vault Client\sgdm.exe" -compareto label Build_0.0.0.1600 $/Projects/MyProject/Code/

And this is what I get:
<vault>
<error>
<exception>System.Exception: Could not map path to anything useful: Build_0.0.0.1600
at VaultClientIntegrationLib.RepositoryUtil.FindVaultTreeObjectAtReposOrLocal
Path(String testPath)
at VaultClientIntegrationLib.ServerOperations.ProcessCommandDiff(String diffP
rogram, String diffArguments, CompareToOption compareToOption, Boolean recursive
, String objectPathLeft, String objectPathRight)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)</exception>
</error>
<result>
<success>False</success>
</result>
</vault>

The label that I am specifying exists, and it seems no matter what label I put in there, same error.

Do I have the command line options correct? Am I missing some information?

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

Re: Command line diff

Post by Beth » Fri Mar 05, 2010 1:21 pm

We are currently looking into this and will post when we know a little more.
Beth Kieler
SourceGear Technical Support

slolife
Posts: 18
Joined: Wed Sep 10, 2008 11:48 am

Re: Command line diff

Post by slolife » Fri Mar 26, 2010 5:16 pm

Any update on this?

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

Re: Command line diff

Post by Beth » Thu Apr 22, 2010 4:35 pm

I've run several tests against this and am getting the same results as you. I have logged a bug. Thank you for reporting this.

In the meantime, you might need to use the Vault GUI client for diff'ing against a label.

F: 15404
Beth Kieler
SourceGear Technical Support

slolife
Posts: 18
Joined: Wed Sep 10, 2008 11:48 am

Re: Command line diff

Post by slolife » Thu Apr 22, 2010 10:14 pm

Is there an ETA on the bug? Or a link I can see the bug progress?

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

Re: Command line diff

Post by Beth » Tue Apr 27, 2010 3:09 pm

I don't have an ETA on a fix and I don't have a way to give you access to our bug tracking. One way to find out if an item is fixed is to subscribe to the RSS feed for our release announcements here: http://support.sourcegear.com/viewforum.php?f=15. You only get email when a new release is announced.
Beth Kieler
SourceGear Technical Support

Post Reply