GetFileList not recursive

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

Moderator: SourceGear

Post Reply
smelzer
Posts: 4
Joined: Mon Jan 10, 2005 1:09 pm

GetFileList not recursive

Post by smelzer » Mon Jan 10, 2005 1:17 pm

i am using SOS 4.0 and the GetFileList command does not output files from subprojects. i only see the files at the parent project level.

is there a way to get this command to function recursively?

thanks,
steve

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

Post by lbauer » Thu Jan 13, 2005 11:47 am

Linda Bauer
SourceGear
Technical Support Manager

SlyW
Posts: 16
Joined: Fri Feb 17, 2006 4:57 pm

Alternative to GetFileList -recurisive

Post by SlyW » Fri Feb 17, 2006 5:01 pm

Are there any combinations of other commands which can mimic a recursive GetFileList? Imagine that the solution will be put into a batch file in order to have a final output of some text file containing a "snapshot" of a project (recursively described) of all files and their respective versions.

Any thoughts?

Thanks,
Sly

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

Post by lbauer » Tue Feb 21, 2006 9:08 am

The best way to do this would be to GetFileList for each subproject.

I'll log a feature request for the Command Line Client to support a recursive GetFileList.
Linda Bauer
SourceGear
Technical Support Manager

SlyW
Posts: 16
Joined: Fri Feb 17, 2006 4:57 pm

And to get the list of subprojects..

Post by SlyW » Tue Feb 21, 2006 9:11 am

Thank you, Linda.

There does not appear to be a GetProjectList command option. How would you propose to loop through the list of subprojects without knowing them ahead of time?

Thanks,
Sly

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

Post by lbauer » Tue Feb 21, 2006 9:15 am

Use the GetProjectTree command:

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					
Linda Bauer
SourceGear
Technical Support Manager

SlyW
Posts: 16
Joined: Fri Feb 17, 2006 4:57 pm

Much obliged

Post by SlyW » Tue Feb 21, 2006 9:22 am

I did not read closely enough to see that it gets output to stdout. I will test this immediately!

Regards,
Sly

SlyW
Posts: 16
Joined: Fri Feb 17, 2006 4:57 pm

BTW..

Post by SlyW » Tue Feb 21, 2006 9:29 am

Are there any reports available which could tell me the current structure of a project, its contents, and the revision number for each item that content?

Perhaps there is something on the server?

As you can probably guess, I am seeking to use the soscmd to do just this. Right now I am seeing the GetProjectTree command take more than five minutes to return a single project structure. I don't know why it is taking so long.

Regards,
Sly

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

Post by lbauer » Tue Feb 21, 2006 6:00 pm

Are there any reports available which could tell me the current structure of a project, its contents, and the revision number for each item that content?
Not in one report. GetProjectTree and GetFileList are the available options.

SOS has very little reporting, particularly in the Command Line Client. The CLC is designed primarly for automated operations, like gets, checkouts, labeling, etc.
Right now I am seeing the GetProjectTree command take more than five minutes to return a single project structure. I don't know why it is taking so long.
Refreshing or Getting the project tree is a bandwidth-intensive operation. That's why the project tree is cached on the SOS Client side and is only refreshed in a manual operation.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply