[Python-Dev] Expose Subversion revision number to Python
Armin Rigo
arigo at tunes.org
Fri Dec 16 17:09:17 CET 2005
Hi Phillip,
On Fri, Dec 16, 2005 at 10:51:33AM -0500, Phillip J. Eby wrote:
> svn info -R|grep '^Last Changed Rev'|sort -nr|head -1|cut -f 4 -d" "
>
> To get the highest-numbered revision. However, both this approach and
> yours will not deal with Subversion messages in non-English locales.
The 'py' lib works around this problem by running "LC_ALL=C svn info".
A bientot,
Armin
More information about the Python-Dev
mailing list