diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -29,7 +29,6 @@ bookmarks, cmdutil, commands, - copies, destutil, dirstateguard, error, @@ -1477,13 +1476,6 @@ repo, ctx, repo[base], labels=[b'dest', b'source'], wctx=wctx, ) wctx.setparents(p1ctx.node(), repo[p2].node()) - if collapse: - copies.graftcopies(wctx, ctx, repo[dest]) - else: - # If we're not using --collapse, we need to - # duplicate copies between the revision we're - # rebasing and its first parent. - copies.graftcopies(wctx, ctx, ctx.p1()) return stats