diff hgext/hgcia.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 bbfae32f178e
children c322890b03e6
line wrap: on
line diff
--- a/hgext/hgcia.py	Mon Apr 04 16:21:57 2011 -0500
+++ b/hgext/hgcia.py	Mon Apr 04 16:21:59 2011 -0500
@@ -75,7 +75,7 @@
 
     def fileelems(self):
         n = self.ctx.node()
-        f = self.cia.repo.status(self.ctx.parents()[0].node(), n)
+        f = self.cia.repo.status(self.ctx.p1().node(), n)
         url = self.url or ''
         elems = []
         for path in f[0]: