##// END OF EJS Templates
changegroup: delete "if True" and reflow
Martin von Zweigbergk -
r32931:b08431e1 default
parent child Browse files
Show More
@@ -279,7 +279,6 b' class cg1unpacker(object):'
279 changesets = files = revisions = 0
279 changesets = files = revisions = 0
280
280
281 try:
281 try:
282 if True:
283 # The transaction may already carry source information. In this
282 # The transaction may already carry source information. In this
284 # case we use the top level data. We overwrite the argument
283 # case we use the top level data. We overwrite the argument
285 # because we need to use the top level value (if they exist)
284 # because we need to use the top level value (if they exist)
@@ -304,8 +303,8 b' class cg1unpacker(object):'
304 self._total = total
303 self._total = total
305 self._count = 1
304 self._count = 1
306 def __call__(self):
305 def __call__(self):
307 repo.ui.progress(self._step, self._count,
306 repo.ui.progress(self._step, self._count, unit=_('chunks'),
308 unit=_('chunks'), total=self._total)
307 total=self._total)
309 self._count += 1
308 self._count += 1
310 self.callback = prog(_('changesets'), expectedtotal)
309 self.callback = prog(_('changesets'), expectedtotal)
311
310
@@ -314,8 +313,7 b' class cg1unpacker(object):'
314 efiles.update(cl.readfiles(node))
313 efiles.update(cl.readfiles(node))
315
314
316 self.changelogheader()
315 self.changelogheader()
317 cgnodes = cl.addgroup(self, csmap, trp,
316 cgnodes = cl.addgroup(self, csmap, trp, addrevisioncb=onchangelog)
318 addrevisioncb=onchangelog)
319 efiles = len(efiles)
317 efiles = len(efiles)
320
318
321 if not (cgnodes or emptyok):
319 if not (cgnodes or emptyok):
General Comments 0
You need to be logged in to leave comments. Login now