Command Line GET

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

Moderator: SourceGear

Post Reply
TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Command Line GET

Post by TimK » Tue Jan 17, 2006 7:32 am

When I run this command

c:\program files\sourcegear\vault client\vault.exe" commandline="GET $/xxx -host xxx -username xxx -password xxx -makewritable -merge overwrite -repository xxx -destpath xxx"

I get all the file marked "Old" but do not get the files marked "Needs Merge" even though I have added the switch "-merge overight"

Can you see what I've done wrong?

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

Post by lbauer » Tue Jan 17, 2006 8:09 am

I could use more information. Are you getting to a working folder or non-working folder? the -destpath option gets the file to a non-working folder and doesn't update status information.

If you are getting to a working folder, try removing -destpath. Vault will know to use the currently defined working folder.

If you continue to experience difficulty, post back with the current command and the version of Vault client and server you are using.
Linda Bauer
SourceGear
Technical Support Manager

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Tue Jan 17, 2006 8:23 am

I was getting files to a non-working folder but changed it now (see below)

c:\program files\sourcegear\vault client\vault.exe" commandline="GET $/xxx -host xxx -username xxx -password xxx -makewritable -merge overwrite -repository xxx "

Server and client version: 3.1.6.3658

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Tue Jan 17, 2006 8:25 am

BTW in the client the working folders are set to inherited except the root

D:\Sites\xxxx\apps (inherited)

Don't know if this makes a difference.

TimK
Posts: 33
Joined: Mon Jan 16, 2006 7:59 am

Post by TimK » Wed Jan 18, 2006 3:22 am

Linda, any luck resolving my issue?

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

Post by lbauer » Wed Jan 18, 2006 9:28 am

I ran this command C:\Program Files\SourceGear\Vault Client>vault GET -host xxx -username xxx -password xxx -repository "Default Repository" -merge overwrite $/addfiles/tests -makewritable, and my Needs Merged files got overwritten.

So the Command Line Client works properly. You might experiment with your command.

Also, check the Vault server log to see if there were any errors in fetching those files.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply