diff hgext/histedit.py @ 22901:722117c8e023

duplicatecopies: move from cmdutil to copies This is in preparation for moving its primary caller into merge.py, which would be a layering violation in the current location.
author Matt Mackall <mpm@selenic.com>
date Mon, 13 Oct 2014 14:33:13 -0500
parents 7bf82faba774
children baa3cfa03a83
line wrap: on
line diff
--- a/hgext/histedit.py	Mon Oct 13 14:04:11 2014 -0500
+++ b/hgext/histedit.py	Mon Oct 13 14:33:13 2014 -0500
@@ -234,7 +234,7 @@
         repo.dirstate.endparentchange()
         repo.dirstate.write()
         # fix up dirstate for copies and renames
-        cmdutil.duplicatecopies(repo, ctx.rev(), ctx.p1().rev())
+        copies.duplicatecopies(repo, ctx.rev(), ctx.p1().rev())
     return stats
 
 def collapse(repo, first, last, commitopts):