Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9723d0

Browse files
committed
use only the hex version, since the revno is unreliable across repos
1 parent 0d23189 commit c9723d0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Parser/asdl_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ def visit(self, object):
11381138

11391139
def get_file_revision(f):
11401140
"""Fish out the last change to a file in hg."""
1141-
args = ["hg", "log", "--template", "{rev}:{node|short}", "--limit", "1", f]
1141+
args = ["hg", "log", "--template", "{node|short}", "--limit", "1", f]
11421142
p = subprocess.Popen(args, stdout=subprocess.PIPE)
11431143
out = p.communicate()[0]
11441144
if p.returncode:

Python/Python-ast.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
/*
5-
__version__ 68410:0daa6ba25d9b.
5+
__version__ 0daa6ba25d9b.
66
77
This module must be committed separately after each AST grammar change;
88
The __version__ number is set to the revision number of the commit
@@ -6739,8 +6739,7 @@ PyInit__ast(void)
67396739
NULL;
67406740
if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
67416741
return NULL;
6742-
if (PyModule_AddStringConstant(m, "__version__", "68410:0daa6ba25d9b")
6743-
< 0)
6742+
if (PyModule_AddStringConstant(m, "__version__", "0daa6ba25d9b") < 0)
67446743
return NULL;
67456744
if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return
67466745
NULL;

0 commit comments

Comments
 (0)