diff options
| author | Georg Brandl <georg@python.org> | 2011-03-06 09:42:21 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-03-06 09:42:21 (GMT) |
| commit | 3a5508e2c075405f35b5c32f413445b9e875c92c (patch) | |
| tree | 784515c9e36589fddb6311168278ff332a5cd92c /Python | |
| parent | 93512f24f1374ef83ac3cca21881b4eea5173781 (diff) | |
| download | cpython-3a5508e2c075405f35b5c32f413445b9e875c92c.zip cpython-3a5508e2c075405f35b5c32f413445b9e875c92c.tar.gz cpython-3a5508e2c075405f35b5c32f413445b9e875c92c.tar.bz2 | |
Port build identification from default branch.
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/sysmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 97ce8cd..56e70e6 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1462,6 +1462,9 @@ _PySys_Init(void) SET_SYS_FROM_STRING("subversion", Py_BuildValue("(ssz)", "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", |
