Patchwork D384: context: fix troubled deprecation

login
register
mail settings
Submitter phabricator
Date Aug. 14, 2017, 9:47 a.m.
Message ID <differential-rev-PHID-DREV-qz2lelxxy2xh47hs33vg-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/22970/
State Superseded
Headers show

Comments

phabricator - Aug. 14, 2017, 9:47 a.m.
lothiraldan created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  troubled has been renamed into isunstable but troubled was calling unstable
  instead. Fix the mistake.

REPOSITORY
  rHG Mercurial

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