actually get file rev

This commit is contained in:
Benjamin Peterson 2011-03-12 18:35:02 -06:00
parent 6cb2b923e0
commit 0d6245dd89
1 changed files with 1 additions and 1 deletions

View File

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