diff Python/sysmodule.c @ 68274:f57c94073b35 3.1

Commit the hg build identification patch from the pymigr repo.
author Georg Brandl <georg@python.org>
date Sat, 05 Mar 2011 20:51:24 +0100
parents 7ccc55811413
children febb6cf195e7 4f9d5263c8e9
line wrap: on
line diff
--- a/Python/sysmodule.c	Sun Mar 06 01:47:18 2011 +0100
+++ b/Python/sysmodule.c	Sat Mar 05 20:51:24 2011 +0100
@@ -1358,6 +1358,9 @@
     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",