[Python-checkins] cpython: actually get file rev

benjamin.peterson python-checkins at python.org
Sun Mar 13 01:34:20 CET 2011


http://hg.python.org/cpython/rev/abbfd5a8b31f
changeset:   68415:abbfd5a8b31f
parent:      68412:0daa6ba25d9b
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat Mar 12 18:35:02 2011 -0600
summary:
  actually get file rev

files:
  Parser/asdl_c.py

diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py
--- 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:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list