commit | 0d6245dd89ebe0423ae75e1decbeb481eadc0f7a | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Mar 12 18:35:02 2011 -0600 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Mar 12 18:35:02 2011 -0600 |
tree | 6c69a6511be878faa5b99097ba0682b5d0ddfedd | |
parent | 6cb2b923e02099208305daf5742d924542c377dd [diff] |
actually get file rev
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index d7aecb5..147ac8d 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py
@@ -1138,7 +1138,7 @@ 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: