actually get file rev

This commit is contained in:
Benjamin Peterson 2011-03-12 18:35:02 -06:00
parent 6cb2b923e0
commit 0d6245dd89

View file

@ -1138,7 +1138,7 @@ def visit(self, object):
def get_file_revision(f):
"""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)
out = p.communicate()[0]
if p.returncode: