diff 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
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()