diff contrib/python-hook-examples.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 62f11ef0df5b
children 2b585677220e
line wrap: on
line diff
--- a/contrib/python-hook-examples.py	Mon Apr 04 16:21:57 2011 -0500
+++ b/contrib/python-hook-examples.py	Mon Apr 04 16:21:59 2011 -0500
@@ -13,7 +13,7 @@
     if kwargs.get('parent2'):
         return
     node = kwargs['node']
-    first = repo[node].parents()[0].node()
+    first = repo[node].p1().node()
     if 'url' in kwargs:
         last = repo['tip'].node()
     else: