D384: context: fix troubled deprecation
lothiraldan (Boris Feld)
phabricator at mercurial-scm.org
Mon Aug 14 09:47:06 UTC 2017
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
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