D384: context: fix troubled deprecation

lothiraldan (Boris Feld) phabricator at mercurial-scm.org
Tue Aug 15 03:09:12 EDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4abf34f47526: context: fix troubled deprecation (authored by lothiraldan).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D384?vs=865&id=920

REVISION DETAIL
  https://phab.mercurial-scm.org/D384

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -243,7 +243,7 @@
         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"""



To: lothiraldan, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list