##// END OF EJS Templates
shelve: use cg?unpacker.apply() instead of changegroup.addchangegroup()
Augie Fackler -
r26697:008761af default
parent child Browse files
Show More
@@ -96,9 +96,9 b' class shelvedfile(object):'
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
General Comments 0
You need to be logged in to leave comments. Login now