##// END OF EJS Templates
shelve: move changegroup generation inside writebundle...
Pierre-Yves David -
r26506:edecf059 default
parent child Browse files
Show More
@@ -105,7 +105,8 b' class shelvedfile(object):'
105 105 def bundlerepo(self):
106 106 return bundlerepo.bundlerepository(self.repo.baseui, self.repo.root,
107 107 self.vfs.join(self.fname))
108 def writebundle(self, cg):
108 def writebundle(self, bases, node):
109 cg = changegroup.changegroupsubset(self.repo, bases, [node], 'shelve')
109 110 changegroup.writebundle(self.ui, cg, self.fname, 'HG10BZ', self.vfs)
110 111
111 112 class shelvedstate(object):
@@ -291,8 +292,7 b' def createcmd(ui, repo, pats, opts):'
291 292 return 1
292 293
293 294 bases = list(publicancestors(repo[node]))
294 cg = changegroup.changegroupsubset(repo, bases, [node], 'shelve')
295 shelvedfile(repo, name, 'hg').writebundle(cg)
295 shelvedfile(repo, name, 'hg').writebundle(bases, node)
296 296 cmdutil.export(repo, [node],
297 297 fp=shelvedfile(repo, name, 'patch').opener('wb'),
298 298 opts=mdiff.diffopts(git=True))
General Comments 0
You need to be logged in to leave comments. Login now