Show More
@@ -349,16 +349,16 b' class cg1unpacker(object):' | |||
|
349 | 349 | revisions += newrevs |
|
350 | 350 | files += newfiles |
|
351 | 351 | |
|
352 | dh = 0 | |
|
352 | deltaheads = 0 | |
|
353 | 353 | if oldheads: |
|
354 | 354 | heads = cl.heads() |
|
355 | dh = len(heads) - len(oldheads) | |
|
355 | deltaheads = len(heads) - len(oldheads) | |
|
356 | 356 | for h in heads: |
|
357 | 357 | if h not in oldheads and repo[h].closesbranch(): |
|
358 | dh -= 1 | |
|
358 | deltaheads -= 1 | |
|
359 | 359 | htext = "" |
|
360 | if dh: | |
|
361 | htext = _(" (%+d heads)") % dh | |
|
360 | if deltaheads: | |
|
361 | htext = _(" (%+d heads)") % deltaheads | |
|
362 | 362 | |
|
363 | 363 | repo.ui.status(_("added %d changesets" |
|
364 | 364 | " with %d changes to %d files%s\n") |
@@ -429,10 +429,10 b' class cg1unpacker(object):' | |||
|
429 | 429 | finally: |
|
430 | 430 | repo.ui.flush() |
|
431 | 431 | # never return 0 here: |
|
432 | if dh < 0: | |
|
433 | return dh - 1 | |
|
432 | if deltaheads < 0: | |
|
433 | return deltaheads - 1 | |
|
434 | 434 | else: |
|
435 | return dh + 1 | |
|
435 | return deltaheads + 1 | |
|
436 | 436 | |
|
437 | 437 | class cg2unpacker(cg1unpacker): |
|
438 | 438 | """Unpacker for cg2 streams. |
General Comments 0
You need to be logged in to leave comments.
Login now