soscmd mini-feature request

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

Moderator: SourceGear

Post Reply
kfsone
Posts: 20
Joined: Mon Jun 02, 2008 1:48 pm
Location: Bedford, TX

soscmd mini-feature request

Post by kfsone » Wed Jul 09, 2008 1:52 pm

It would be really nice to be able to get a list of projects within a project, either by

GetProjectTree -norecurse

or

GetProjectList -project $/someproject/ [-recursive]

Right now I have to do GetProjectTree and wait a rather long time :(

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

Post by lbauer » Thu Jul 10, 2008 10:10 pm

You should be able to do this with GetProjectTree in SOS 4.2:

Code: Select all

- GetProjectTree -	

  Gets the project tree rooted at the input project, or root project 
  if none specified and outputs to standard out.  This command 
  returns the structure of the project in the VSS database.  If a 
  SourceOffSite home directory is specified, this command will also 
  update the project tree in the local cache file.  Please note that 
  this command does not retrieve the files in the project.   

  Required Params: -server, -name, -password, -database or -alias 
  Optional Params: -project	
You can use the -project parameter to specify a specific project and see the subfolders with a command like this (this was run against our SOS public server):

Code: Select all

C:\Program Files\SourceOffSite> soscmd -command GetProjectTree -server sos.sourceoffsite.com:8888 -alias NewVssDatabase -name Daffy -password duck -project $/bond 

Printing Tree for: $/bond
bond
    ConsoleApplication1
        ConsoleApplication1
            Properties		
Without the -project parameter, you get the entire tree.
Linda Bauer
SourceGear
Technical Support Manager

kfsone
Posts: 20
Joined: Mon Jun 02, 2008 1:48 pm
Location: Bedford, TX

Post by kfsone » Wed Jul 16, 2008 2:59 pm

lbauer wrote:You should be able to do this with GetProjectTree in SOS 4.2:
...

Code: Select all

C:\Program Files\SourceOffSite> soscmd -command GetProjectTree -server sos.sourceoffsite.com:8888 -alias NewVssDatabase -name Daffy -password duck -project $/bond 

Printing Tree for: $/bond
bond
    ConsoleApplication1
        ConsoleApplication1
            Properties		
Without the -project parameter, you get the entire tree.
The keyword you missed was:
kfsone wrote:GetProjectTree -norecurse
I don't want to see projects below the level I am querying.
[/list]

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

Post by lbauer » Wed Jul 16, 2008 3:37 pm

I could use some clarification, then.
It would be really nice to be able to get a list of projects within a project
What are expecting to see when you get this list?
Linda Bauer
SourceGear
Technical Support Manager

Post Reply