summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-03-06 10:42:21 +0100
committerGeorg Brandl <georg@python.org>2011-03-06 10:42:21 +0100
commite1e2033e397c7a3bd1192dae8bde4407ed901e8f (patch)
tree67287b2cc50209a566da6b27ba0dfdbbf30971c7 /Python
parenta230dea531230c14f5d98ab7d99726cb42210514 (diff)
downloadcpython-e1e2033e397c7a3bd1192dae8bde4407ed901e8f.tar.gz
Port build identification from default branch.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c3
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",