use only the hex version, since the revno is unreliable across repos

This commit is contained in:
Benjamin Peterson 2011-03-13 16:36:08 -05:00
parent 0d23189dae
commit c9723d09eb
2 changed files with 3 additions and 4 deletions

View file

@ -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: