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