diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-05-02 16:55:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 16:55:50 +0200 |
commit | 2c7085fd7b00cba8b5ab258c62453b6a12418b73 (patch) | |
tree | cdb3210f79dd0735494da3878fe3b49a8834453a /Python | |
parent | 6bed8f95d72f622cb916bcebad651ccd3de6fe9d (diff) | |
download | cpython-git-2c7085fd7b00cba8b5ab258c62453b6a12418b73.tar.gz |
bpo-27593: Get SCM build info from git instead of hg (#1327)
Based on commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178 by Ned
Deily, which is based on original patches by Brett Cannon and Steve
Dower.
Remove also the private _Py_svnversion() function and SVNVERSION
variable.
Note: Py_SubversionRevision() and Py_SubversionShortBranch() are
unchanged, they are part of the public API.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/sysmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index aeff38a6e7..b153ef6338 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1426,9 +1426,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("_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", |