use only the hex version, since the revno is unreliable across repos
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
index 147ac8d..cdce5a3 100755
--- a/Parser/asdl_c.py
+++ b/Parser/asdl_c.py
@@ -1138,7 +1138,7 @@
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: