[PATCH 4 of 6] headsummary: expose the 'discardedheads' set in the headssummary
Yuya Nishihara
yuya at tcha.org
Wed Jun 7 09:37:10 EDT 2017
On Sun, 04 Jun 2017 15:49:32 +0100, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at octobus.net>
> # Date 1496029933 -7200
> # Mon May 29 05:52:13 2017 +0200
> # Node ID 33062379c342992425c1ba8083bafb46420ba7d0
> # Parent 0be71c66f99550d0abc18fceaa86e0ac018bd382
> # EXP-Topic pushrace
> # Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
> # hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 33062379c342
> headsummary: expose the 'discardedheads' set in the headssummary
> @@ -238,10 +240,12 @@ def _headssummary(pushop):
> newmap.update(repo, (ctx.rev() for ctx in missingctx))
> for branch, newheads in newmap.iteritems():
> headssum[branch][1][:] = newheads
> - for branch, items in headssum.iteritems():
> + for branch, items in list(headssum.iteritems()):
No need to make a list here since dict keys aren't modified. Removed list()
in flight.
> for l in items:
> if l is not None:
> l.sort()
> + headssum[branch] = items + ([],)
More information about the Mercurial-devel
mailing list