summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-03-05 19:51:24 (GMT)
committerGeorg Brandl <georg@python.org>2011-03-05 19:51:24 (GMT)
commit1ca2e7965c52525684bb517401c513158a8af989 (patch)
treebb4d18504b81ba63fc7b46ebf05d839b51338dd7 /Python/sysmodule.c
parent7b50c2c6aed2754f205835420d7450f2e401ebfd (diff)
downloadcpython-1ca2e7965c52525684bb517401c513158a8af989.zip
cpython-1ca2e7965c52525684bb517401c513158a8af989.tar.gz
cpython-1ca2e7965c52525684bb517401c513158a8af989.tar.bz2
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 e330473..f85cc55 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",