# HG changeset patch # User Boris Feld # Date 2017-08-14 09:20:06 # Node ID 4abf34f475266be9483a6d70cbfd6a5bfa484feb # Parent 4f8c241b2bfa3ea6e4d8c29d3a480a05791f5c2a context: fix troubled deprecation troubled has been renamed into isunstable but troubled was calling unstable instead. Fix the mistake. Differential Revision: https://phab.mercurial-scm.org/D384 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -243,7 +243,7 @@ class basectx(object): msg = ("'context.troubled' is deprecated, " "use 'context.isunstable'") self._repo.ui.deprecwarn(msg, '4.4') - return self.unstable() + return self.isunstable() def isunstable(self): """True if the changeset is either unstable, bumped or divergent"""