Mercurial > evolve
changeset 467:869ddfb98c7e
obsolete: add a "troubled" revset
returns all changeset with troubles whatever the trouble is.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Mon, 20 Aug 2012 15:43:57 +0200 |
parents | b98490b689a5 |
children | 6b1b6d338478 |
files | hgext/obsolete.py |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/obsolete.py Mon Aug 20 14:40:48 2012 +0200 +++ b/hgext/obsolete.py Mon Aug 20 15:43:57 2012 +0200 @@ -648,6 +648,17 @@ troubles.append('conflicting') return tuple(troubles) +### Troubled revset symbol + +@eh.revset('troubled') +def revsetlatecomer(repo, subset, x): + """``troubled()`` + Changesets with troubles. + """ + _ = revset.getargs(x, 0, 0, 'troubled takes no arguments') + return list(repo.revs('%ld and (unstable() + latecomer() + conflicting())', + subset)) + ### Obsolescence graph