# HG changeset patch # User Augie Fackler # Date 1444770766 14400 # Node ID b1a0c534d9b4d36301a234b96535d98466aa3d7c # Parent dbc3d945ba36b5245817c233cafab8f65eb75d41 repair: use cg?unpacker.apply() instead of changegroup.addchangegroup() diff -r dbc3d945ba36 -r b1a0c534d9b4 mercurial/repair.py --- a/mercurial/repair.py Tue Oct 13 17:12:29 2015 -0400 +++ b/mercurial/repair.py Tue Oct 13 17:12:46 2015 -0400 @@ -197,9 +197,7 @@ finally: tr.release() else: - changegroup.addchangegroup(repo, gen, 'strip', - 'bundle:' + vfs.join(chgrpfile), - True) + gen.apply(repo, 'strip', 'bundle:' + vfs.join(chgrpfile), True) if not repo.ui.verbose: repo.ui.popbuffer() f.close() @@ -310,4 +308,3 @@ "ancestors(head() and not bookmark(%s)) - " "ancestors(bookmark() and not bookmark(%s))", mark, mark, mark) -