/usr/bin/soscmd not using the cache

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

Moderator: SourceGear

Post Reply
fabrice.aeschbacher
Posts: 7
Joined: Tue Jan 11, 2005 9:14 am

/usr/bin/soscmd not using the cache

Post by fabrice.aeschbacher » Tue Nov 22, 2005 4:11 am

Hi,

[SourceOffsite server : v4.1.2 (Windows) / client : v4.1.2 (Linux) ]

We are using the command line client under Linux (/usr/bin/soscmd). Unfortunately, a GetProject command seems to download the whole project each time, regardless of the version of the files already present in the working directory.

For example:

$ mkdir -p ~/sos_repository

$ /usr/bin/soscmd -command GetProject -server myserver:8080 -name user1 -password pwd1 -database 'C:\VSS_CCTV\srcsafe.ini' -soshome /home/user1/sos_repository -verbose -project '$/Project1' -workdir src1 -recursive

This command is downloading all Projects1's files and creating the cache files into the directory given as parameter to -soshome (i.e., ~/sos_repository).

But when running the same 'GetProject' command again will re-load all project's files, every time.

The same problem occurs if we don't use an arbitrary soshome, but the default ~/.sos created by the GUI client (sos).

Is this an expected behaviour? Do we miss something?

Best regards,
Fabrice Aeschbacher

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

Post by lbauer » Wed Nov 23, 2005 12:34 pm

Try using -soshome without -workdir. By default, -soshome should use the working directory, since it gets that information from the cache file.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply