command line getlabel does not seem to work
Moderator: SourceGear
command line getlabel does not seem to work
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
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
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
SourceGear
Technical Support Manager
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.
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.
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.1) The GUI version of the vault client shows that the files are either old, renegate, or need a merge
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?2) The files are not being updated.
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
SourceGear
Technical Support Manager