graphlog: don't pass filectxs to the templater (issue1896)
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Fri, 06 Nov 2009 08:27:17 +0100
changeset 9727 d00cee04a746
parent 9726 430e59ff3437
child 9728 acb1c59b4514
graphlog: don't pass filectxs to the templater (issue1896)
mercurial/graphmod.py
--- a/mercurial/graphmod.py	Mon Nov 02 11:03:22 2009 -0500
+++ b/mercurial/graphmod.py	Fri Nov 06 08:27:17 2009 +0100
@@ -48,7 +48,7 @@
         parents = [f.linkrev() for f in fctx.parents() if f.path() == path]
         rev = fctx.rev()
         if rev <= start:
-            yield (rev, CHANGESET, fctx, sorted(parents))
+            yield (rev, CHANGESET, fctx.changectx(), sorted(parents))
         if rev <= stop:
             break
         filerev -= 1