title: How can I get an updated $Revision$ in my code
body: <p>I have a project into which I'd like to embed the revision number automagically.</p>
  
  <p>In this case, it's a multi-file perl script. In the main file, I have a line that looks like this:</p>
  
  <p>my $revision = '$Revision: 24 $';</p>
  
  <p>When I make a release, I checkout the project to my release dir.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>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."</p>