diff hgext/notify.py @ 13878:a8d13ee0ce68

misc: replace .parents()[0] with p1()
author Matt Mackall <mpm@selenic.com>
date Mon, 04 Apr 2011 16:21:59 -0500
parents d83566f4453b
children 23f4e1e40988
line wrap: on
line diff
--- 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()