Reputation: 85298
I've not sure if this could be implemented with Subversion, but is there a way to add a file with the revision number on commit?
UPDATE:
OK, I've added this option to my SVN configuration
[auto-props]
enable-auto-props = yes
*.php = svn:keywords=Id
Here is the file I'm checking in with SVN (command line)
<?php
/**
* $Id$
*/
?>
$Id$
Looking in the repository I only see the code above and not the revision number.
Upvotes: 3
Views: 7863
Reputation: 97280
Preface
If you want to have global revision number for repository, you get wrong solution and implement even this bad solution in not optimal way
Face
$svn info . ... Revision: 9012 Node Kind: directory ... Last Changed Rev: 5381 ...
or
$svnversion
9012
svn propset
for this and only this filesvn.exe export ... z:\trunk$WCDATE=%Y%m%d$-r$WCREV$
pattern command to export into unique dir-name and the same WCDATE template in text-file replaced with human-readable and informative data, $WCDATE=%Y%m%d$-r$WCREV$
was 20120122-r1143 at latest commit Upvotes: 1
Reputation: 890
Perhaps this would help:
http://www.startupcto.com/server-tech/subversion/setting-the-id-tag
Upvotes: 2