comparison mercurial/context.py @ 33800:9fa874fb34e1

obsolete: rename bumped volatile set into phasedivergent volatile set The renaming is done according to https://www.mercurial-scm.org/wiki/CEDVocabulary. Differential Revision: https://phab.mercurial-scm.org/D255
author Boris Feld <boris.feld@octobus.net>
date Fri, 04 Aug 2017 19:39:34 +0200
parents f3f06c260e9e
children 4abf34f47526
comparison
equal deleted inserted replaced
33799:f3f06c260e9e 33800:9fa874fb34e1
222 def phasedivergent(self): 222 def phasedivergent(self):
223 """True if the changeset try to be a successor of a public changeset 223 """True if the changeset try to be a successor of a public changeset
224 224
225 Only non-public and non-obsolete changesets may be bumped. 225 Only non-public and non-obsolete changesets may be bumped.
226 """ 226 """
227 return self.rev() in obsmod.getrevs(self._repo, 'bumped') 227 return self.rev() in obsmod.getrevs(self._repo, 'phasedivergent')
228 228
229 def divergent(self): 229 def divergent(self):
230 msg = ("'context.divergent' is deprecated, " 230 msg = ("'context.divergent' is deprecated, "
231 "use 'context.contentdivergent'") 231 "use 'context.contentdivergent'")
232 self._repo.ui.deprecwarn(msg, '4.4') 232 self._repo.ui.deprecwarn(msg, '4.4')