Getting SVN revision number into a program automatically
I’m not sure about the Python specifics, but if put the string $Revision$ into your file somewhere and you have enable-auto-props=true in your SVN config, it’ll get rewritten to something like $Revision: 144$. You could then parse this in your script. There are a number of property keywords you can use in this way. This … Read more