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