changeset 16163:807f796e9b1a stable

graft: use proper revisions for copy detection (issue3265)
author Matt Mackall <mpm@selenic.com>
date Fri, 24 Feb 2012 16:09:15 -0600
parents 7e279d475669
children 18743c4d1989
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Feb 24 19:11:35 2012 -0200
+++ b/mercurial/commands.py	Fri Feb 24 16:09:15 2012 -0600
@@ -2601,7 +2601,7 @@
             repo.dirstate.setparents(current.node(), nullid)
             repo.dirstate.write()
             # fix up dirstate for copies and renames
-            cmdutil.duplicatecopies(repo, ctx.rev(), current.node())
+            cmdutil.duplicatecopies(repo, ctx.rev(), ctx.p1().rev())
             # report any conflicts
             if stats and stats[3] > 0:
                 # write out state for --continue