A problem about soscmd.exe

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

Moderator: SourceGear

Post Reply
mei
Posts: 4
Joined: Fri May 19, 2006 1:48 am

A problem about soscmd.exe

Post by mei » Fri May 19, 2006 3:49 am

When I use soscmd.exe to check out a file, do some changes and check it in the SourceOffSite, there is a problem that the local version in the UI can't be refreshed. The remote version is the current version, and the changed data is right at the server and client, but the local version in UI is not right! Why? Should I get latest version after the files are checked in every time?

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

Post by lbauer » Fri May 19, 2006 10:15 am

The SOS GUI Client relies on the client cache file to determine file status. If you do a "Get" with soscmd, use the "-soshome" parameter to update the client side cache, so the SOS GUI Client has the correct file status information. For documentation of -soshome, see soscmd.txt.

http://support.sourcegear.com/viewtopic.php?t=1266
Linda Bauer
SourceGear
Technical Support Manager

mei
Posts: 4
Joined: Fri May 19, 2006 1:48 am

The problem still exists!

Post by mei » Fri May 19, 2006 11:54 pm

I tried, but failed.

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

Post by lbauer » Sat May 20, 2006 8:28 pm

When you say it failed, what do you mean? Was there an error message?

What version of SOS are you using? What is you command? Use xxx for servername, password and user when you post your command to this public forum.
Linda Bauer
SourceGear
Technical Support Manager

mei
Posts: 4
Joined: Fri May 19, 2006 1:48 am

Post by mei » Sun May 21, 2006 7:50 pm

Sorry to bather you , how to display image here?

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

Post by lbauer » Mon May 22, 2006 7:35 am

You can add an image as an attachment to your post. When you reply, there is an "Attachment Posting Control Panel" at the bottom of the screen. If you click on "Add Attachment," it will display a Browse button and fields for the file name and comment.
Linda Bauer
SourceGear
Technical Support Manager

mei
Posts: 4
Joined: Fri May 19, 2006 1:48 am

Post by mei » Sun May 28, 2006 11:35 pm

Sorry, the images were not uploaded last time. The data is updated in local machine and the server. The UI of SOS can't refresh.
Attachments
soscmd.JPG
Images.
soscmd.JPG (135.35 KiB) Viewed 6628 times

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

Post by lbauer » Thu Jun 01, 2006 6:59 am

If you do a Diff, the file with Needs Merged state in the working directory is probably the same as the file in the database. Do a Get Latest with Overwrite to resolve the file status.

When you use -soshome in the Command Line Client, you don't need to use -workdir, as the cache file has information about the working directory.

Using both caused confusion in the client, which made it think the version in the working directory was different than the version in the database.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply