# HG changeset patch # User Pierre-Yves David # Date 1357405807 -3600 # Node ID 789acc1d039baf3e268395f8a98b404b359ac246 # Parent 4cd65437b7043726b774e7efddc528039ee5834b evolve: drop "troubles" and "troubled" method now in core diff -r 4cd65437b704 -r 789acc1d039b hgext/evolve.py --- a/hgext/evolve.py Fri Jan 25 16:31:29 2013 +0100 +++ b/hgext/evolve.py Sat Jan 05 18:10:07 2013 +0100 @@ -405,23 +405,6 @@ if ui.config('alias', 'odiff', None) is None: ui.setconfig('alias', 'odiff', "diff --hidden --rev 'limit(precursors(.),1)' --rev .") -# - "troubles" method on changectx - -@eh.addattr(context.changectx, 'troubles') -def troubles(ctx): - """Return a tuple listing all the troubles that affect a changeset - - Troubles may be "unstable", "bumped" or "divergent". - """ - troubles = [] - if ctx.unstable(): - troubles.append('unstable') - if ctx.bumped(): - troubles.append('bumped') - if ctx.divergent(): - troubles.append('divergent') - return tuple(troubles) - ### Troubled revset symbol @eh.revset('troubled')