Patchwork D384: context: fix troubled deprecation

login
register
mail settings
Submitter phabricator
Date Aug. 15, 2017, 7:09 a.m.
Message ID <c84484e37f38dd6d50de0054b4cb7adf@localhost.localdomain>
Download mbox | patch
Permalink /patch/23013/
State Not Applicable
Headers show

Comments

phabricator - Aug. 15, 2017, 7:09 a.m.
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




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

Patch

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"""