From: Benjamin Peterson Date: Sun, 13 Mar 2011 00:35:02 +0000 (-0600) Subject: actually get file rev X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d6245dd89ebe0423ae75e1decbeb481eadc0f7a;p=python actually get file rev --- diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index d7aecb58c2..147ac8d746 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -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"] + args = ["hg", "log", "--template", "{rev}:{node|short}", "--limit", "1", f] p = subprocess.Popen(args, stdout=subprocess.PIPE) out = p.communicate()[0] if p.returncode: