command line getlabel does not seem to work

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

command line getlabel does not seem to work

Post by vuser01 » Tue Apr 11, 2006 1:48 pm

I am trying to automate the build process and one of the steps is to get the files from vault using a label. I have a batch file which runs the following line, however, there are 2 issues that I am experiencing:

1) The GUI version of the vault client shows that the files are either old, renegate, or need a merge

2) The files are not being updated.

Both client and server versions are 3.1.8.3771

vault getlabel -host "host.com" -user User -password pass -repository "repo" -labelworkingfolder "C:\dev\dir1\dir2" -merge overwrite -setfiletime checkin -verbose $/dir1/dir2/ label

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Apr 11, 2006 1:59 pm

Are you logging in to the Command Line Client as the same user that's logged into the Vault GUI Client where you're viewing the file status? Working folder baselines are specific to each Vault user, so if two users are using the same working folder, files could appear to be out of sync.
Linda Bauer
SourceGear
Technical Support Manager

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

Post by vuser01 » Wed Apr 12, 2006 2:08 pm

Yes, the same user is used for both the vault client logon and the command line logon. Out of the two issues, the one that I am most concerened with is that the files are not being updated.

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

Post by vuser01 » Mon Apr 24, 2006 12:12 pm

Did anyone have a chance to look into this problem any further? I am still having the issues.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Apr 24, 2006 12:42 pm

If you get the label from the GUI Client, are the proper files retrieved?

If you use the Command Line Client and get the label into a non-working folder using -destpath, are the proper files retrieved?
Linda Bauer
SourceGear
Technical Support Manager

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

Post by vuser01 » Mon Apr 24, 2006 5:38 pm

For your first question, yes, the GUI does retrieve the correct files and the status changes so the files are upto date.

For the second question, yes, the proper files are retrieved. The issue with using destpath is that it does not update vault with the status and therefore, the GUI doesn't correlate one to one with the files that I have on the system and the visual representation of the status.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Apr 25, 2006 9:02 am

1) The GUI version of the vault client shows that the files are either old, renegate, or need a merge
What status do you expect to see? Are you labeling the latest version and immediately doing a getlabel? If files in the repository have changed since the label, then you would see files with a status of "old," for instance.
2) The files are not being updated.
Do you mean the files in the working directory are not being overwritten by the label? If you delete the contents of the working directory and do the getlabel, are the proper files retrieved?

Are there any errors in the Command Line Client verbose output or in the Vault Server log (sgvault.log in %windir%\temp\sgvault) that indicate there was a problem getting the files in the label?
Linda Bauer
SourceGear
Technical Support Manager

Post Reply