comparison mercurial/context.py @ 33797:4abf34f47526

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
author Boris Feld <boris.feld@octobus.net>
date Mon, 14 Aug 2017 11:20:06 +0200
parents 9fa874fb34e1
children f488223a87ab
comparison
equal deleted inserted replaced
33796:4f8c241b2bfa 33797:4abf34f47526
241 241
242 def troubled(self): 242 def troubled(self):
243 msg = ("'context.troubled' is deprecated, " 243 msg = ("'context.troubled' is deprecated, "
244 "use 'context.isunstable'") 244 "use 'context.isunstable'")
245 self._repo.ui.deprecwarn(msg, '4.4') 245 self._repo.ui.deprecwarn(msg, '4.4')
246 return self.unstable() 246 return self.isunstable()
247 247
248 def isunstable(self): 248 def isunstable(self):
249 """True if the changeset is either unstable, bumped or divergent""" 249 """True if the changeset is either unstable, bumped or divergent"""
250 return self.orphan() or self.phasedivergent() or self.contentdivergent() 250 return self.orphan() or self.phasedivergent() or self.contentdivergent()
251 251