python - Inject the revision number in sourcecode (TortoiseSvn or SVN Shell) -


I want to inject the amended number in the source code on committed. I came to know that I can do something like this through SVN Open:

  find -name * .php -exec svn propset svn: keyword "Rev"   

However somebody said that this will not work because there is no file in the repository (as they are encrypting the files), and I should be able to do it in Turtle SVN I got the "hook script" section , But I have absolutely no experience with this stuff is.

Can you give me some hints how the command should look, if I want the first line of code to look like:

  / * * Version: 154 * Last modified on revision: 150 * /   

I know that you can inject using $ $ $ but how to do this, so only certain files in certain directories Files are changed.

Write your own method for no injection number version Instead,

  • Apply only those replaced tags $ revision $ ) that you want to replace
  • Enable Replacement Only ( for those files using svn propce svn: keywords revision or something like that)

Comments