mercurial/context.py
changeset 33779 9fa874fb34e1
parent 33778 f3f06c260e9e
child 33797 4abf34f47526
equal deleted inserted replaced
33778:f3f06c260e9e 33779: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')