Mercurial > evolve
changeset 2246:fb4ef91f888e
checkheads: give up on processing locally unknown changeset
There are too many issue with locally unknown changesets, we ignore them for
now while we get the core feature of the detection working.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 29 Mar 2017 16:28:15 +0200 |
parents | a14e05e4bb20 |
children | 2320a7e3cbd7 |
files | hgext3rd/evolve/checkheads.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/checkheads.py Tue Mar 21 23:44:30 2017 +0100 +++ b/hgext3rd/evolve/checkheads.py Wed Mar 29 16:28:15 2017 +0200 @@ -193,6 +193,8 @@ # XXX as above, There are several cases this code does not handle # XXX properly # + # * We "silently" skip processing on all changeset unknown locally + # # (1) if <nh> is public, it won't be affected by obsolete marker # and a new is created # @@ -205,9 +207,13 @@ # In addition, this code is confused by prune as it only looks for # successors of the heads (none if pruned) leading to issue4354 repo = pushop.repo + unfi = repo.unfiltered() newhs = set() discarded = set() for nh in candidate: + if nh not in unfi: + newhs.add(nh) + continue if nh in repo and repo[nh].phase() <= phases.public: newhs.add(nh) else: