# HG changeset patch # User Augie Fackler # Date 2015-10-13 21:14:21 # Node ID 78aa4392c26114dc9917a2c67a89fe62deefe496 # Parent 1121fced5b204e19de1e36edcad0a7643d7697c1 histedit: use cg?unpacker.apply() instead of changegroup.addchangegroup() diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -163,7 +163,6 @@ import sys from mercurial import cmdutil from mercurial import discovery from mercurial import error -from mercurial import changegroup from mercurial import copies from mercurial import context from mercurial import exchange @@ -823,8 +822,7 @@ def _histedit(ui, repo, state, *freeargs backupfile = repo.join(state.backupfile) f = hg.openpath(ui, backupfile) gen = exchange.readbundle(ui, f, backupfile) - changegroup.addchangegroup(repo, gen, 'histedit', - 'bundle:' + backupfile) + gen.apply(repo, 'histedit', 'bundle:' + backupfile) os.remove(backupfile) # check whether we should update away