comparison hgext/shelve.py @ 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 ca8170b5d370
children ae03d4190321
comparison
equal deleted inserted replaced
26696:78aa4392c261 26697:008761affe3f
94 94
95 def applybundle(self): 95 def applybundle(self):
96 fp = self.opener() 96 fp = self.opener()
97 try: 97 try:
98 gen = exchange.readbundle(self.repo.ui, fp, self.fname, self.vfs) 98 gen = exchange.readbundle(self.repo.ui, fp, self.fname, self.vfs)
99 changegroup.addchangegroup(self.repo, gen, 'unshelve', 99 gen.apply(self.repo, 'unshelve',
100 'bundle:' + self.vfs.join(self.fname), 100 'bundle:' + self.vfs.join(self.fname),
101 targetphase=phases.secret) 101 targetphase=phases.secret)
102 finally: 102 finally:
103 fp.close() 103 fp.close()
104 104
105 def bundlerepo(self): 105 def bundlerepo(self):
106 return bundlerepo.bundlerepository(self.repo.baseui, self.repo.root, 106 return bundlerepo.bundlerepository(self.repo.baseui, self.repo.root,