title: How to automatically add svn keyword anchors into the already present files
body: <p>On a project version controlled by SVN, I see one can use Keyword Substitution in files in order to display important information about: who worked on it, the date it was changed, rev number, etc. just by adding relevant keyword anchors into my files. For this to work all one has to do is change the subversion config file</p>
  
  <p>~/.subversion/config </p>
  
  <pre><code>[miscellany]
  enable-auto-props = yes
  
  [auto-props]
  *.php = svn:keywords=Id
  *.js = svn:keywords=Id
  </code></pre>
  
  <p>So this would set the <code>$Id$</code> tag for all .php or .js files, and if I write <code>$Id$</code> keyword anchor anywhere in my files that keyword anchor will be replaced with the info I want. </p>
  
  <p>Now this works only on <strong><em>New Files</em></strong> in the project, to circumvent this problem I can use (I havent yet for fear :P) this command at the root of my source tree:</p>
  
  <pre><code>find . \( -name "*.php" -o -name "*.js" \) -exec svn propset svn:keywords Id {} \;
  </code></pre>
  
  <p>Thats all good but now I would have to open and add the relevant keywords (in this case <code>$Id$</code>) to all my old files. Is there an easy way to perform this task because not only are there hundreds of files in the project, I dont want to open up a file and <em>edit</em> (meaning I would have to check in all these files, and the all important info of who changed it last and what revision it was changed in would be me with the latest revision, just because I added the keywords)?</p>
  
  <p>Sorry for the long intro :P</p>
  
  <p>Info I used:</p>
  
  <p><a href="http://www.startupcto.com/server-tech/subversion/setting-the-id-tag" rel="nofollow">http://www.startupcto.com/server-tech/subversion/setting-the-id-tag</a>
  <a href="http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html" rel="nofollow">http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html</a></p>