I have a project into which I'd like to embed the revision number automagically.
In this case, it's a multi-file perl script. In the main file, I have a line that looks like this:
my $revision = '$Revision: 24 $';
When I make a release, I checkout the project to my release dir.
The revision number does change whenever I check-in a change to THAT FILE. The $Revision$ attribute is updated on check-in, but not check-out.
The thing is, the main file doesn't change that often, so even though the other files in the project are now at 27, the main still has 24.
Is there a way that I can get the main file to reflect the latest rev number? The one that svn prints out at the end of the checkout, ie "Checked out revision 27."