hgext/shelve.py
changeset 33051 b82615afde65
parent 32986 4107eb8a5648
child 33055 18c2489ac96d
--- 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(),