--- a/hgext/shelve.py Thu Jun 22 15:59:07 2017 -0700
+++ b/hgext/shelve.py Fri Jun 16 10:25:11 2017 -0700
@@ -127,9 +127,11 @@
try:
gen = exchange.readbundle(self.repo.ui, fp, self.fname, self.vfs)
if not isinstance(gen, bundle2.unbundle20):
- gen.apply(self.repo, self.repo.currenttransaction(), 'unshelve',
- 'bundle:' + self.vfs.join(self.fname),
- targetphase=phases.secret)
+ bundle2.applybundle1(self.repo, gen,
+ self.repo.currenttransaction(),
+ source='unshelve',
+ url='bundle:' + self.vfs.join(self.fname),
+ targetphase=phases.secret)
else:
bundle2.applybundle(self.repo, gen,
self.repo.currenttransaction(),