mercurial/copies.py
changeset 13878 a8d13ee0ce68
parent 12683 ada47c38f4e5
child 14494 1ffeeb91c55d
--- 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())