From 1ca2e7965c52525684bb517401c513158a8af989 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 5 Mar 2011 20:51:24 +0100 Subject: Commit the hg build identification patch from the pymigr repo. --- Python/sysmodule.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index e33047308d1..f85cc55ad1d 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", -- cgit v1.2.3