Automatic Project Tree Refresh
Moderator: SourceGear
Automatic Project Tree Refresh
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
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
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
SourceGear
Technical Support Manager
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.
$/(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
SourceGear
Technical Support Manager
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.
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.
-
- Posts: 2
- Joined: Tue Apr 10, 2007 6:07 am
How to... Automatic Project Tree Refresh
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
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
-
- Posts: 2
- Joined: Tue Apr 10, 2007 6:07 am
It's a workaround.How do you feel about this solution?
Could you recomment it?
I do not know of a way to have the SOS startup trigger the script.Do you have an better solution/fix?
Pls. give me more specific help, on how to make this script run at SOS startup.
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
SourceGear
Technical Support Manager