How do I tag files in a directory in a SVN repository with a global version number that will appear

Posted by mithaldu on Stack Overflow See other posts from Stack Overflow or by mithaldu
Published on 2010-01-19T20:41:18Z Indexed on 2010/04/26 17:23 UTC
Read the original article Hit count: 246

Filed under:
|

I am working on a project that stores multiple versions in the same svn repo but in different directories. For ease of reference for the coders working on the project I'd like to be able to add a commented tag similarly to

# $Revision: 144 $

However, instead of the file revision it should contain a simple version number like so:

# $Version: 1.63 $
# $Version: 1.64 $
# $Version: 2.0 $

Is there a way to get subversion to do this automatically for a specific directory and all sub-directories as well as for any new files added to those?

© Stack Overflow or respective owner

Related posts about svn

Related posts about versioning