summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-03-04 05:19:55 (GMT)
committerGitHub <noreply@github.com>2017-03-04 05:19:55 (GMT)
commit5c4b0d063aba0a68c325073f5f312a2c9f40d178 (patch)
tree9dd85d1261b732477a4ed38bd5d63de2d3c2e847 /Python
parentfc64c351c7757f0ebdb7da65cb74871e494a2add (diff)
downloadcpython-5c4b0d063aba0a68c325073f5f312a2c9f40d178.zip
cpython-5c4b0d063aba0a68c325073f5f312a2c9f40d178.tar.gz
cpython-5c4b0d063aba0a68c325073f5f312a2c9f40d178.tar.bz2
bpo-27593: Get SCM build info from git instead of hg. (#446)
sys.version and the platform module python_build(), python_branch(), and python_revision() functions now use git information rather than hg when building from a repo. Based on original patches by Brett Cannon and Steve Dower.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index c317b43..2da7702 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1960,9 +1960,9 @@ _PySys_Init(void)
PyUnicode_FromString(Py_GetVersion()));
SET_SYS_FROM_STRING("hexversion",
PyLong_FromLong(PY_VERSION_HEX));
- SET_SYS_FROM_STRING("_mercurial",
- Py_BuildValue("(szz)", "CPython", _Py_hgidentifier(),
- _Py_hgversion()));
+ SET_SYS_FROM_STRING("_git",
+ Py_BuildValue("(szz)", "CPython", _Py_gitidentifier(),
+ _Py_gitversion()));
SET_SYS_FROM_STRING("dont_write_bytecode",
PyBool_FromLong(Py_DontWriteBytecodeFlag));
SET_SYS_FROM_STRING("api_version",