summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-03-06 10:26:32 +0100
committerGeorg Brandl <georg@python.org>2011-03-06 10:26:32 +0100
commit2875deec71177f229c16ac0a23c8401f2b3b951c (patch)
tree0fd1a8a9c9814a03d433b17ad5b39f04abba4b1b /Python/sysmodule.c
parent5ec546315635a840e026f29402e8f1f99f689e0a (diff)
parentc91e9aa08f9c05464c601f109243edb051195b30 (diff)
downloadcpython-2875deec71177f229c16ac0a23c8401f2b3b951c.tar.gz
Merge build identification to default branch.
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 89fe4f1fe6..9c94ececd5 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1599,6 +1599,9 @@ _PySys_Init(void)
SET_SYS_FROM_STRING("subversion",
Py_BuildValue("(sss)", "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",