evolve: drop "troubles" and "troubled" method now in core
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Sat, 05 Jan 2013 18:10:07 +0100
changeset 657 789acc1d039b
parent 656 4cd65437b704
child 658 2a2b8c95bb43
evolve: drop "troubles" and "troubled" method now in core
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')