# HG changeset patch # User Augie Fackler # Date 1444770678 14400 # Node ID 008761affe3f1415ddfaa5588a425d606c44a762 # Parent 78aa4392c26114dc9917a2c67a89fe62deefe496 shelve: use cg?unpacker.apply() instead of changegroup.addchangegroup() diff -r 78aa4392c261 -r 008761affe3f hgext/shelve.py --- a/hgext/shelve.py Tue Oct 13 17:14:21 2015 -0400 +++ b/hgext/shelve.py Tue Oct 13 17:11:18 2015 -0400 @@ -96,9 +96,9 @@ fp = self.opener() try: gen = exchange.readbundle(self.repo.ui, fp, self.fname, self.vfs) - changegroup.addchangegroup(self.repo, gen, 'unshelve', - 'bundle:' + self.vfs.join(self.fname), - targetphase=phases.secret) + gen.apply(self.repo, 'unshelve', + 'bundle:' + self.vfs.join(self.fname), + targetphase=phases.secret) finally: fp.close()