mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
use only the hex version, since the revno is unreliable across repos
This commit is contained in:
parent
0d23189dae
commit
c9723d09eb
2 changed files with 3 additions and 4 deletions
|
|
@ -1138,7 +1138,7 @@ c_file_msg = """
|
|||
|
||||
def get_file_revision(f):
|
||||
"""Fish out the last change to a file in hg."""
|
||||
args = ["hg", "log", "--template", "{rev}:{node|short}", "--limit", "1", f]
|
||||
args = ["hg", "log", "--template", "{node|short}", "--limit", "1", f]
|
||||
p = subprocess.Popen(args, stdout=subprocess.PIPE)
|
||||
out = p.communicate()[0]
|
||||
if p.returncode:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue