# HG changeset patch # User Boris Feld # Date 1502436743 -7200 # Node ID f9c8c754a5286da0e05bc20e9841c4332880617c # Parent 1c9150e30b28dc99ac88a69560dff22fa2c0724f context: troubled was deprecated Use isunstable instead. Match 52c5ff856b49ac8f2a4eadda6dc9dbb070f39a3f mercurial changeset. diff -r 1c9150e30b28 -r f9c8c754a528 hgext3rd/evolve/compat.py --- a/hgext3rd/evolve/compat.py Thu Aug 10 20:40:57 2017 +0200 +++ b/hgext3rd/evolve/compat.py Fri Aug 11 09:32:23 2017 +0200 @@ -104,6 +104,9 @@ if not util.safehasattr(context.basectx, 'phasedivergent'): context.basectx.phasedivergent = context.basectx.bumped +if not util.safehasattr(context.basectx, 'isunstable'): + context.basectx.isunstable = context.basectx.troubled + if not util.safehasattr(revset, 'orphan'): @eh.revset('orphan') def oprhanrevset(*args, **kwargs): diff -r 1c9150e30b28 -r f9c8c754a528 hgext3rd/topic/stack.py --- a/hgext3rd/topic/stack.py Thu Aug 10 20:40:57 2017 +0200 +++ b/hgext3rd/topic/stack.py Fri Aug 11 09:32:23 2017 +0200 @@ -19,6 +19,9 @@ if not util.safehasattr(context.basectx, 'orphan'): context.basectx.orphan = context.basectx.unstable +if not util.safehasattr(context.basectx, 'isunstable'): + context.basectx.isunstable = context.basectx.troubled + def getstack(repo, branch=None, topic=None): # XXX need sorting if topic is not None and branch is not None: @@ -178,7 +181,7 @@ data = {} revs = getstack(repo, branch, topic)[1:] data['changesetcount'] = len(revs) - data['troubledcount'] = len([r for r in revs if repo[r].troubled()]) + data['troubledcount'] = len([r for r in revs if repo[r].isunstable()]) deps, rdeps = builddependencies(repo, revs) data['headcount'] = len([r for r in revs if not rdeps[r]]) data['behindcount'] = 0