# HG changeset patch # User Laurent Charignon # Date 1434761268 25200 # Node ID cf043c659ae31336bf5b416962f41659b4da0433 # Parent 8794a4680bdd78fe9e452611797f9b018fc031df evolve: remove _picknexttroubled It was not used anymore diff -r 8794a4680bdd -r cf043c659ae3 hgext/evolve.py --- a/hgext/evolve.py Fri Jun 19 17:35:29 2015 -0700 +++ b/hgext/evolve.py Fri Jun 19 17:47:48 2015 -0700 @@ -1548,25 +1548,6 @@ progresscb() _cleanup(ui, repo, startnode, showprogress) -def _picknexttroubled(ui, repo, category, pickany=False, progresscb=None): - """Pick a the next trouble changeset to solve""" - if progresscb: progresscb() - tro = _stabilizableunstable(repo, repo['.']) - if tro is None: - wdp = repo['.'] - if 'divergent' in wdp.troubles(): - tro = wdp - if tro is None and pickany: - troubled = list(repo.set('unstable()')) - if not troubled: - troubled = list(repo.set('bumped()')) - if not troubled: - troubled = list(repo.set('divergent()')) - if troubled: - tro = troubled[0] - - return tro - def _stabilizableunstable(repo, pctx): """Return a changectx for an unstable changeset which can be stabilized on top of pctx or one of its descendants. None if none