# HG changeset patch # User Pierre-Yves David # Date 1497624611 -7200 # Node ID 02129bed002c0277a109aefb7b2c0c4a89cddb75 # Parent 7d96082193628e068b6035ce701031e749f3ff3e obsfate: improve prune support in _successorsetverb In the prune case, still have markers (at least the prune markers). If we want to be able to return these markers we need the underlying function to support it. diff -r 7d9608219362 -r 02129bed002c hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Fri Jun 16 12:37:03 2017 +0200 +++ b/hgext3rd/evolve/obshistory.py Fri Jun 16 16:50:11 2017 +0200 @@ -629,11 +629,11 @@ def _successorsetverb(successorset, markers): """ Return the verb summarizing the successorset """ - # XXX we need to handle prune markers at some point. - if not markers: - return {'verb': 'pruned'} - - return {'verb': 'rewritten'} + if not successorset: + verb = 'pruned' + else: + verb = 'rewritten' + return {'verb': verb} FORMATSSETSFUNCTIONS = [ _successorsetdates,