hgext/notify.py
changeset 13878 a8d13ee0ce68
parent 13202 d83566f4453b
child 14617 23f4e1e40988
--- a/hgext/notify.py	Mon Apr 04 16:21:57 2011 -0500
+++ b/hgext/notify.py	Mon Apr 04 16:21:59 2011 -0500
@@ -249,7 +249,7 @@
     def diff(self, ctx, ref=None):
 
         maxdiff = int(self.ui.config('notify', 'maxdiff', 300))
-        prev = ctx.parents()[0].node()
+        prev = ctx.p1().node()
         ref = ref and ref.node() or ctx.node()
         chunks = patch.diff(self.repo, prev, ref, opts=patch.diffopts(self.ui))
         difflines = ''.join(chunks).splitlines()