Mercurial > evolve
changeset 3956:98295547c40f stable
obshashrange: correctly detect changeset directly affected by prune
Before this changesets, parent of standard obsmarkers were wrongly considered
affected and pruned changeset were wrongly not considered affected.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 16 Aug 2018 21:12:57 +0200 |
parents | 0174737af4fc |
children | 90c17c086eba |
files | hgext3rd/evolve/obsdiscovery.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/obsdiscovery.py Thu Aug 16 21:18:18 2018 +0200 +++ b/hgext3rd/evolve/obsdiscovery.py Thu Aug 16 21:12:57 2018 +0200 @@ -424,7 +424,11 @@ affected = set() for m in obsmarkers: # check successors and parent - for l in (m[1], m[5]): + if m[1]: + relevant = (m[1], ) + else: # prune case + relevant = ((m[0], ), m[5]) + for l in relevant: if l is None: continue for p in l: