Trouble with skipwritable

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

Moderator: SourceGear

Post Reply
Georgy
Posts: 1
Joined: Wed Jul 09, 2008 11:51 am

Trouble with skipwritable

Post by Georgy » Wed Jul 09, 2008 12:00 pm

Hi!
First of all i'm using SOS 4.2 both on server and client.

Here is the command i use:

soscmd -server "server" -name "username" -password "password" -alias "alias" -project "project" -command GetProject -recursive -verbose

When i use this command everything is fine and it takes 20 seconds to get the project.
Here is what the console says:

Received Challenge from server
Successfully logged in.
Sending GetProject Command to server.
Got file: File
...
Finished retrieving project files.
Closed connection.

When i add -skipwritable at the end of this command, it takes forever because it actually gets the tree of all my project from $ (wich is not what i want).
Here is what console says:

Received Challenge from server
Successfully logged in.
Sending GetProject Command to server.
Downloading project tree for $/
(now it takes forever)

So i wonder why when i activate -skipwritable the command has to get the project tree.

Thanks!

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

Post by lbauer » Wed Jul 09, 2008 2:51 pm

Thanks for the report. I'll log this as a bug and we'll look into it.
Linda Bauer
SourceGear
Technical Support Manager

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Wed Jul 09, 2008 3:04 pm

Georgy:

According to the docs, the -project parameter is for a valid SourceSafe project (folder) in the database specified by the -database parameter.

For example, "-project $/projects/apollo/src" would be a valid path.

In your post, is "project" a valid VSS path?
Jeff Clausius
SourceGear

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Wed Jul 09, 2008 3:06 pm

According to the docs:

-skipwritable is used with GetProject command. If present, will prevent checked out files or other writable files from being overwritten.

I'll take a look at the code. What could be happening is if you are doing this on $/ of your VSS repository, checking each and every file for a file attribute or checkout is causing the slow down. I'll post back when I have more information.
Jeff Clausius
SourceGear

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Wed Jul 09, 2008 3:27 pm

I just looked up -skipwritable. When you do a GetProject() with this parameter, it will inspect every file's write attribute to see if it needs to be overwritten. This check will be taking up a lot of time.
Jeff Clausius
SourceGear

Post Reply