[Python-Dev] Expose Subversion revision number to Python
skip@pobox.com
skip at pobox.com
Fri Dec 16 12:02:19 CET 2005
Armin> What about having instead:
Armin> sys.build_info = ("CPython", <svn rev>, "trunk")
Armin> This would make it clear that it's the CPython svn rev number,
Armin> and it could possibly be used to distinguish between branches,
Armin> too, which the revision number alone cannot do. ("trunk" is the
Armin> last part of the path returned by "svn info".)
What was your directory path when you got "trunk" from "svn info"? In my
sandbox I get this:
% pwd
/Users/skip/src/python-svn/trunk
% svn info
Path: .
URL: svn+ssh://pythondev@svn.python.org/python/trunk
Repository UUID: 6015fed2-1504-0410-9fe1-9d1591cc4771
Revision: 41708
Node Kind: directory
Schedule: normal
Last Changed Author: trent.mick
Last Changed Rev: 41708
Last Changed Date: 2005年12月15日 16:16:49 -0600 (2005年12月15日)
Properties Last Updated: 2005年12月15日 20:45:15 -0600 (2005年12月15日)
Did you mean the last part of the URL?
Skip
More information about the Python-Dev
mailing list