changeset 3229:f7a8228fde17

Use parentrevs shortcut in filectx.annotate
author Brendan Cully <brendan@kublai.com>
date Mon, 02 Oct 2006 17:59:39 -0700
parents a63be0dfa42e
children 3dba9ec89164
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -218,7 +218,7 @@ class filectx(object):
         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()