diff options
author | Georg Brandl <georg@python.org> | 2011-03-06 10:42:21 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-03-06 10:42:21 +0100 |
commit | 3a5508e2c075405f35b5c32f413445b9e875c92c (patch) | |
tree | 784515c9e36589fddb6311168278ff332a5cd92c /Python/sysmodule.c | |
parent | 93512f24f1374ef83ac3cca21881b4eea5173781 (diff) | |
download | cpython-git-3a5508e2c075405f35b5c32f413445b9e875c92c.tar.gz |
Port build identification from default branch.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 97ce8cdc4e..56e70e61bb 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1462,6 +1462,9 @@ _PySys_Init(void) SET_SYS_FROM_STRING("subversion", Py_BuildValue("(ssz)", "CPython", branch, svn_revision)); + SET_SYS_FROM_STRING("_mercurial", + Py_BuildValue("(szz)", "CPython", _Py_hgidentifier(), + _Py_hgversion())); SET_SYS_FROM_STRING("dont_write_bytecode", PyBool_FromLong(Py_DontWriteBytecodeFlag)); SET_SYS_FROM_STRING("api_version", |