def writebundle(self, bases, node): cgversion = changegroup.safeversion(self.repo) if cgversion == '01': btype = 'HG10BZ' compression = None else: btype = 'HG20' compression = 'BZ' cg = changegroup.changegroupsubset(self.repo, bases, [node], 'shelve', version=cgversion) bundle2.writebundle(self.ui, cg, self.fname, btype, self.vfs, compression=compression)
def writebundle(self, bases, node): cgversion = changegroup.safeversion(self.repo) if cgversion == '01': btype = 'HG10BZ' compression = None else: btype = 'HG20' compression = 'BZ' outgoing = discovery.outgoing(self.repo, missingroots=bases, missingheads=[node]) cg = changegroup.makechangegroup(self.repo, outgoing, cgversion, 'shelve') bundle2.writebundle(self.ui, cg, self.fname, btype, self.vfs, compression=compression)