[Python-Dev] Expose Subversion revision number to Python
Phillip J. Eby
pje at telecommunity.com
Fri Dec 16 23:11:31 CET 2005
At 10:53 PM 12/16/2005 +0100, Fredrik Lundh wrote:
>fwiw, the official way to do this is to use svnversion:
>
> http://subversion.tigris.org/faq.html#version-value-in-source
>
>(this also looks for local changes).
It looks like using 'svnversion -c . | cut -f2 -d":"' would get the
most-recent committed version, plus the letter "M" if there are local
changes. That sounds like what we should be using.
That way, a build with local revisions would include "M", thus nicely
addressing that issue as well.
More information about the Python-Dev
mailing list