[PATCH 4 of 9 phases] phases: handle unknown nodes in boundary
Gilles Moris
gilles.moris at free.fr
Tue Nov 8 01:05:50 CST 2011
On Monday 07 November 2011 06:43:16 pm Pierre-Yves David wrote:
> +def filterunknown(repo, phaseroots=None):
> + """remove unknown node from phase boundary
Plural may be: nodeS
> +
> + no data is lost as unknown node only old data for they descentants
Small typos: ... as unknown nodeS only Hold data for theIR descenDants ...
Regards.
Gilles.
> + """
> + if phaseroots is None:
> + phaseroots = repo._phaseroots
> + for phase, nodes in enumerate(phaseroots):
> + missing = [node for node in nodes if node not in repo]
> + if missing:
> + for mnode in missing:
> + msg = _('Removing unknown node %(n)s from %(p)i-phase
> boundary') + repo.ui.debug(msg, {'n': short(mnode), 'p':
> phase}) + nodes.symmetric_difference_update(missing)
> + repo._dirtyphases = True
> +
More information about the Mercurial-devel
mailing list