Sign in to follow this  
Samurai Jack

Current File version from SourceSafe

Recommended Posts

Samurai Jack    455
Greetings! I was wondering if it is possible, to display the current file version out of source safe? For example the same file modified 2 times at version 3, should display in about or what-so-ever method File "test.cpp" version 3. Is it possible with Micro$oft SourceSafe 6.0d and Visual C++ 7.1 (2003). This is a normal C++ console project without any managed stuff. Thank you in advance!

Share this post

Link to post
Share on other sites
markr    1692
There is some method which you can have VSS expand some tokens in your source code (like $Version or something) which gives you the revision of that file.

Alternatively, you could add a batch file or something to your build process which uses whatever VSS command dumps the version of every file (as VSS versions files individually, not as a project), and include that somewhere.

Bear in mind that VSS does not retain a complete history of changes in a project, because it doesn't handle deletions properly.

Good luck in not losing any source code*


* Which experience tells me always happens when VSS is used for anything.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this