diff mercurial/copies.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 ada47c38f4e5
children 1ffeeb91c55d
line wrap: on
line diff
--- a/mercurial/copies.py	Mon Apr 04 16:21:57 2011 -0500
+++ b/mercurial/copies.py	Mon Apr 04 16:21:59 2011 -0500
@@ -93,7 +93,7 @@
         return {}, {}
 
     # avoid silly behavior for parent -> working dir
-    if c2.node() is None and c1.node() == repo.dirstate.parents()[0]:
+    if c2.node() is None and c1.node() == repo.dirstate.p1():
         return repo.dirstate.copies(), {}
 
     limit = _findlimit(repo, c1.rev(), c2.rev())