Show More
@@ -304,7 +304,7 b' class cg1packer(object):' | |||||
304 | def fileheader(self, fname): |
|
304 | def fileheader(self, fname): | |
305 | return chunkheader(len(fname)) + fname |
|
305 | return chunkheader(len(fname)) + fname | |
306 |
|
306 | |||
307 |
def group(self, nodelist, revlog, lookup, units=None |
|
307 | def group(self, nodelist, revlog, lookup, units=None): | |
308 | """Calculate a delta group, yielding a sequence of changegroup chunks |
|
308 | """Calculate a delta group, yielding a sequence of changegroup chunks | |
309 | (strings). |
|
309 | (strings). | |
310 |
|
310 | |||
@@ -325,7 +325,7 b' class cg1packer(object):' | |||||
325 |
|
325 | |||
326 | # for generaldelta revlogs, we linearize the revs; this will both be |
|
326 | # for generaldelta revlogs, we linearize the revs; this will both be | |
327 | # much quicker and generate a much smaller bundle |
|
327 | # much quicker and generate a much smaller bundle | |
328 | if (revlog._generaldelta and reorder is None) or reorder: |
|
328 | if (revlog._generaldelta and self._reorder is None) or self._reorder: | |
329 | dag = dagutil.revlogdag(revlog) |
|
329 | dag = dagutil.revlogdag(revlog) | |
330 | revs = set(revlog.rev(n) for n in nodelist) |
|
330 | revs = set(revlog.rev(n) for n in nodelist) | |
331 | revs = dag.linearize(revs) |
|
331 | revs = dag.linearize(revs) | |
@@ -381,8 +381,7 b' class cg1packer(object):' | |||||
381 |
|
381 | |||
382 | self._verbosenote(_('uncompressed size of bundle content:\n')) |
|
382 | self._verbosenote(_('uncompressed size of bundle content:\n')) | |
383 | size = 0 |
|
383 | size = 0 | |
384 |
for chunk in self.group(clnodes, cl, lookupcl, units=_('changesets') |
|
384 | for chunk in self.group(clnodes, cl, lookupcl, units=_('changesets')): | |
385 | reorder=reorder): |
|
|||
386 | size += len(chunk) |
|
385 | size += len(chunk) | |
387 | yield chunk |
|
386 | yield chunk | |
388 | self._verbosenote(_('%8.i (changelog)\n') % size) |
|
387 | self._verbosenote(_('%8.i (changelog)\n') % size) | |
@@ -406,8 +405,7 b' class cg1packer(object):' | |||||
406 |
|
405 | |||
407 | mfnodes = self.prune(ml, mfs, commonrevs) |
|
406 | mfnodes = self.prune(ml, mfs, commonrevs) | |
408 | size = 0 |
|
407 | size = 0 | |
409 |
for chunk in self.group(mfnodes, ml, lookupmf, units=_('manifests') |
|
408 | for chunk in self.group(mfnodes, ml, lookupmf, units=_('manifests')): | |
410 | reorder=reorder): |
|
|||
411 | size += len(chunk) |
|
409 | size += len(chunk) | |
412 | yield chunk |
|
410 | yield chunk | |
413 | self._verbosenote(_('%8.i (manifests)\n') % size) |
|
411 | self._verbosenote(_('%8.i (manifests)\n') % size) | |
@@ -439,7 +437,6 b' class cg1packer(object):' | |||||
439 | def generatefiles(self, changedfiles, linknodes, commonrevs, source): |
|
437 | def generatefiles(self, changedfiles, linknodes, commonrevs, source): | |
440 | repo = self._repo |
|
438 | repo = self._repo | |
441 | progress = self._progress |
|
439 | progress = self._progress | |
442 | reorder = self._reorder |
|
|||
443 | msgbundling = _('bundling') |
|
440 | msgbundling = _('bundling') | |
444 |
|
441 | |||
445 | total = len(changedfiles) |
|
442 | total = len(changedfiles) | |
@@ -463,8 +460,7 b' class cg1packer(object):' | |||||
463 | h = self.fileheader(fname) |
|
460 | h = self.fileheader(fname) | |
464 | size = len(h) |
|
461 | size = len(h) | |
465 | yield h |
|
462 | yield h | |
466 |
for chunk in self.group(filenodes, filerevlog, lookupfilelog |
|
463 | for chunk in self.group(filenodes, filerevlog, lookupfilelog): | |
467 | reorder=reorder): |
|
|||
468 | size += len(chunk) |
|
464 | size += len(chunk) | |
469 | yield chunk |
|
465 | yield chunk | |
470 | self._verbosenote(_('%8.i %s\n') % (size, fname)) |
|
466 | self._verbosenote(_('%8.i %s\n') % (size, fname)) |
General Comments 0
You need to be logged in to leave comments.
Login now