Wednesday, May 11, 2005

VSS and list of shared files for a given project

Recently we have observed random corruption of a large VSS database recently at my work. As a stop gap measure, we have recreated a fresh VSS database to copy at least the latest source to proceed further. However we do have a number of shared files among projects and VSS doesn't have a built in report to list those files that are shared.

So here is a quickly hacked Ruby script for producing a "list of shared files in VSS project". It is also smart enough to ignore deleted shares when considering whether a file is shared or not. It might be useful for others so I am publishing it here.

List shared files VSS Report