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
soscmd mini-feature request
Moderator: SourceGear
You should be able to do this with GetProjectTree in SOS 4.2:
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):
Without the -project parameter, you get the entire tree.
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
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
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
The keyword you missed was:lbauer wrote:You should be able to do this with GetProjectTree in SOS 4.2:
...Without the -project parameter, you get the entire tree.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
I don't want to see projects below the level I am querying.kfsone wrote:GetProjectTree -norecurse
[/list]