##// END OF EJS Templates
changegroup: close progress in same function as it's started...
Martin von Zweigbergk -
r24901:e9edd537 default
parent child Browse files
Show More
@@ -347,6 +347,8 b' class cg1packer(object):'
347 for c in self.revchunk(revlog, curr, prev, linknode):
347 for c in self.revchunk(revlog, curr, prev, linknode):
348 yield c
348 yield c
349
349
350 if units is not None:
351 self._progress(msgbundling, None)
350 yield self.close()
352 yield self.close()
351
353
352 # filter any nodes that claim to be part of the known set
354 # filter any nodes that claim to be part of the known set
@@ -360,10 +362,6 b' class cg1packer(object):'
360 cl = self._changelog
362 cl = self._changelog
361 ml = self._manifest
363 ml = self._manifest
362 reorder = self._reorder
364 reorder = self._reorder
363 progress = self._progress
364
365 # for progress output
366 msgbundling = _('bundling')
367
365
368 clrevorder = {}
366 clrevorder = {}
369 mfs = {} # needed manifests
367 mfs = {} # needed manifests
@@ -388,7 +386,6 b' class cg1packer(object):'
388 size += len(chunk)
386 size += len(chunk)
389 yield chunk
387 yield chunk
390 self._verbosenote(_('%8.i (changelog)\n') % size)
388 self._verbosenote(_('%8.i (changelog)\n') % size)
391 progress(msgbundling, None)
392
389
393 # Callback for the manifest, used to collect linkrevs for filelog
390 # Callback for the manifest, used to collect linkrevs for filelog
394 # revisions.
391 # revisions.
@@ -414,7 +411,6 b' class cg1packer(object):'
414 size += len(chunk)
411 size += len(chunk)
415 yield chunk
412 yield chunk
416 self._verbosenote(_('%8.i (manifests)\n') % size)
413 self._verbosenote(_('%8.i (manifests)\n') % size)
417 progress(msgbundling, None)
418
414
419 mfs.clear()
415 mfs.clear()
420 clrevs = set(cl.rev(x) for x in clnodes)
416 clrevs = set(cl.rev(x) for x in clnodes)
@@ -435,7 +431,6 b' class cg1packer(object):'
435 yield chunk
431 yield chunk
436
432
437 yield self.close()
433 yield self.close()
438 progress(msgbundling, None)
439
434
440 if clnodes:
435 if clnodes:
441 repo.hook('outgoing', node=hex(clnodes[0]), source=source)
436 repo.hook('outgoing', node=hex(clnodes[0]), source=source)
@@ -473,6 +468,7 b' class cg1packer(object):'
473 size += len(chunk)
468 size += len(chunk)
474 yield chunk
469 yield chunk
475 self._verbosenote(_('%8.i %s\n') % (size, fname))
470 self._verbosenote(_('%8.i %s\n') % (size, fname))
471 progress(msgbundling, None)
476
472
477 def deltaparent(self, revlog, rev, p1, p2, prev):
473 def deltaparent(self, revlog, rev, p1, p2, prev):
478 return prev
474 return prev
General Comments 0
You need to be logged in to leave comments. Login now