[Python-Dev] Expose Subversion revision number to Python

Armin Rigo arigo at tunes.org
Fri Dec 16 17:17:28 CET 2005


Hi Phillip,

On Fri, Dec 16, 2005 at 10:59:23AM -0500, Phillip J. Eby wrote:
> The "Revision" from "svn info" isn't reliable; it doesn't actually relate 
> to what version of code is in the subtree.  It can change when nothing has 
> changed.

Indeed, the patch should not use the "Revision" line but the "Last
Changed Rev" one.

> SVN does track the actual 
> *changed* revision, it just takes a little more work to get it.

Not if you're happy with "Last Changed Rev":

    LC_ALL=C svn info | grep -i "last changed rev" | cut -f 4 -d " "


A bientot,

Armin


More information about the Python-Dev mailing list