Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Searching Revision History Comments in Visual SourceSafe

0.00/5 (No votes)
3 Sep 2010 1  
How to use the SourceSafe.Interop to search through a project for a key word.

Introduction

I was recently involved in a project that has been housed in Visual SourceSafe (VSS) for the past 3 years of its development.  The primary means of project documentation and change history was the comments in the version history of each and every single file, as they were checked in. To my dismay, Visual SourceSafe provides no way to search the comment field.  Fortunately, there is a .NET library to communicate with Visual SourceSafe. I wrote a quick little utility to allow searching the comment field for a keyword. 

Using the code

This solution is fairly straightforward.  Instantiate a connection to a VSS database, and by using the IVSSItem object, you can iterate through the files and folders.  IVSSITem objects have a "comment" property. 

Points of Interest

Interestingly, the SourcSafe.Interop library will not register properly on Windows 7 64-bit.  I hope to include an update to handle that issue.

History

This is the first version. 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here