Use parentrevs shortcut in filectx.annotate
authorBrendan Cully <brendan@kublai.com>
Mon, 02 Oct 2006 17:59:39 -0700
changeset 3237 f7a8228fde17
parent 3236 a63be0dfa42e
child 3238 3dba9ec89164
Use parentrevs shortcut in filectx.annotate
mercurial/context.py
--- a/mercurial/context.py	Mon Oct 02 17:37:57 2006 -0700
+++ b/mercurial/context.py	Mon Oct 02 17:59:39 2006 -0700
@@ -218,7 +218,7 @@
         def parents(f):
             # we want to reuse filectx objects as much as possible
             p = f._path
-            pl = [ (p, f._filelog.rev(n)) for n in f._filelog.parents(f._filenode) ]
+            pl = [ (p, r) for r in f._filelog.parentrevs(f._filerev) ]
 
             if follow:
                 r = f.renamed()