vspacer
 
vspacer
 

ssdir

 

Purpose Over time obsolete stuff piles up. It becomes hard to see the forest from the trees. Analysis and repair run times also increase.

You'll find cleanup much easier if you can go to your users with a SourceSafe project list showing the number of accesses month-by-month for the last year, and get them to mark up what's deletable and what they really need to keep.

SS

Tested with SourceSafe V5.0. V6.0

OS Windows NT/2K/XP Command line utility.
Usage ssdir SourceSafeProjectPath {PathToSourcesafeTransactionLog} {E}
Example:
ssdir "$/Test Project" "C:\Program Files\DevStudio\Vss\Utilities" E

The optional 'E' parameter causes indirect accesses to a project to share files from it to be excluded from the access counts.
Outputs ssdir.txt. Sample content:
Fri Jan 12 16:50:47 2001
Analysis of SourceSafe Project tree : $/Test
For valid results you must have full access rights to this tree. Included in count of projects used in last 12 months: - Checkins, Adds, Deletes, and Destroy operations. Excluded from count of projects used in last 12 months: - Read-only Get's. This is a SourceSafe 5.0 limitation. SourceSafe 5 cannot log 'get's to the transaction log. - Indirect accesses to a project to share files from it.
File Last 12 Months Project Count Project Access
2 [ ] $/Test 0 [ ] :..$/Test/Project1 31 [ A ] : :..$/Test/Project1/Docs 1 [ ] : :..$/Test/Project1/Docs/2000 0 [ ] :..$/Test/Project2 4 [ A J] : :..$/Test/Project2/Docs 3 [ ] : : :..$/Test/Project2/Docs/2001 4 [ SON ] : :..$/Test/Project2/Statistics
45 Files 8 Projects Sat Jan 14 18:50:47 2001
If you omit the transaction log parameter, then the program outputs a non-indented directory listing:
File  Project
Count
2 $/Test 0 $/Test/Project1 31 $/Test/Project1/Docs 1 $/Test/Project1/Docs/2000 0 $/Test/Project2 4 $/Test/Project2/Docs 3 $/Test/Project2/Docs/2001 4 $/Test/Project2/Statistics
45 Files 8 Projects Sat Jan 14 18:55:32 2001
This listing can be useful as a basis for editing ad-hoc batch files. Sorted by project count it can also be useful in identifying empty directories that are not simply holding directories.
Action Once you have obsolete projects identified you have several options : move to an 'obsolete' section in the current database, delete, archive, or split out to a separate database.
How often you need to do this will depend on your rate of growth but a yearly review might be a good start.
Installation Copy the program into the directory where you want to run it. It's stand-alone and requires no configuration or support.
Download ssdir 1.21 (39 KB)

   


Back to top | ZDS Home | This article updated January 15, 2004.