Mercurial > hg-stable
changeset 26697:008761affe3f
shelve: use cg?unpacker.apply() instead of changegroup.addchangegroup()
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Oct 2015 17:11:18 -0400 |
parents | 78aa4392c261 |
children | c94cdeeb586a |
files | hgext/shelve.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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()