Automatic Project Tree Refresh

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

Moderator: SourceGear

Post Reply
Sky

Automatic Project Tree Refresh

Post by Sky » Wed Jul 06, 2005 1:51 am

Hi!

Is it possible to force SOS 4.1 to refresh the project tree at startup?
It is annoying if you don't using actual sources because SOS missed folders when getting the latest version.

Thanks

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

Post by lbauer » Wed Jul 06, 2005 7:33 am

No, there's no automatic refresh for the Project Tree in SOS. For some users, refreshing the project tree could take an hour or more. We've thought about adding an option for autorefresh, but this could be such a performance hit that it would negate any speed improvements from using SOS instead of VSS over the Internet.
Linda Bauer
SourceGear
Technical Support Manager

ologesa
Posts: 2
Joined: Wed Jul 06, 2005 7:55 am

Post by ologesa » Wed Jul 06, 2005 8:00 am

Hi

I think that Refresh Project Tree isnt doing what it should and does not recusively go into subdirectories. Am I right about this?


Best regards

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

Post by lbauer » Wed Jul 06, 2005 8:51 am

It should. You have to do the refresh from at least one level higher than the place you wish to refresh.

$/(root)
---|Project A
-----|Subproject 1
-----|Subproject 2
----------|subproject a

To refresh Project A (or any project at the same level) you would refresh from the Root level. To refresh subproject a, perform the project tree refresh from Subproject 2, Project A, or Root.

If the project tree is not being refreshed properly, there may be a problem with communication between the SOS client and server, such as a connection timeout, etc.
Linda Bauer
SourceGear
Technical Support Manager

Sky

Post by Sky » Wed Aug 03, 2005 9:23 am

Hi!

I have now created a batchfile. I delete the cache files to force a refresh of the project tree at SOS Startup.

del /s /q "%SOSHOME%\servers\*.*"
%SOS_DIR%\sos.exe


I also tried soscmd.exe -command GetProjectTree .....
but it does not remove deleted projects.

The refresh takes about 2-4 secounds via WAN-Connection which is acceptable.

Sky

Post by Sky » Wed Aug 03, 2005 10:15 am

... switched back to soscmd.exe -command GetProjectTree because the cache files also contain the work-folders... :(

hesseldahl
Posts: 2
Joined: Tue Apr 10, 2007 6:07 am

How to... Automatic Project Tree Refresh

Post by hesseldahl » Tue Apr 10, 2007 6:13 am

Hi Sky

I do like your creative ways of solving this - Sourcegear does obviolsly not want to include a needed(!) feature...

But pls. be specific: how do you implement this fix (soscmd.exe -command GetProjectTree )? How do one "program" it???

Pls. help us out

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

Post by lbauer » Tue Apr 10, 2007 7:39 am

You could run the batch file as part of an automated script that runs on a schedule.
Linda Bauer
SourceGear
Technical Support Manager

hesseldahl
Posts: 2
Joined: Tue Apr 10, 2007 6:07 am

Post by hesseldahl » Tue Apr 10, 2007 7:50 am

Hi Linda


Thanks for your answer.

How do you feel about this solution?
Could you recomment it?
Do you have an better solution/fix?

Pls. give me more specific help, on how to make this script run at SOS startup.


Thanks in advance!

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

Post by lbauer » Tue Apr 10, 2007 2:48 pm

How do you feel about this solution?
Could you recomment it?
It's a workaround.
Do you have an better solution/fix?
Pls. give me more specific help, on how to make this script run at SOS startup.
I do not know of a way to have the SOS startup trigger the script.

If you want to refresh the project tree when you first use the SOS Client, I'd suggest just using the Refresh Project tree command in the GUI.

Another option is to run the script when you first log into your machine to start work. Automated task can be run at user login.
http://www.microsoft.com/technet/prodte ... 2kadc.mspx

You'd write a batch file that runs the GetProjectTree command, and have the scheduler call that.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply