]> granicus.if.org Git - python/commitdiff
actually get file rev
authorBenjamin Peterson <benjamin@python.org>
Sun, 13 Mar 2011 00:35:02 +0000 (18:35 -0600)
committerBenjamin Peterson <benjamin@python.org>
Sun, 13 Mar 2011 00:35:02 +0000 (18:35 -0600)
Parser/asdl_c.py

index d7aecb58c246cd271bbf9943f42b3c7fa6b61d6e..147ac8d746351e8b94e7555275d28015d210f769 100755 (executable)
@@ -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: