summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-03-05 20:51:24 +0100
committerGeorg Brandl <georg@python.org>2011-03-05 20:51:24 +0100
commiteca408a420b84b91700cd461def2af9a0be42bc7 (patch)
tree489982714a700e09ac09f368c27aa3c181b3ab50 /Python/sysmodule.c
parent4a781542fbb3bc7f8d0571b2b72549674ecf901b (diff)
downloadcpython-eca408a420b84b91700cd461def2af9a0be42bc7.tar.gz
Commit the hg build identification patch from the pymigr repo.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index e33047308d..f85cc55ad1 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1358,6 +1358,9 @@ _PySys_Init(void)
SET_SYS_FROM_STRING("subversion",
Py_BuildValue("(UUU)", "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",