##// END OF EJS Templates
obsolete: rename bumped volatile set into phasedivergent volatile set...
Boris Feld -
r33774:9fa874fb default
parent child Browse files
Show More
@@ -224,7 +224,7 b' class basectx(object):'
224 224
225 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 229 def divergent(self):
230 230 msg = ("'context.divergent' is deprecated, "
@@ -942,9 +942,16 b' def _computeextinctset(repo):'
942 942 """the set of obsolete parents without non obsolete descendants"""
943 943 return getrevs(repo, 'obsolete') - getrevs(repo, 'suspended')
944 944
945
946 945 @cachefor('bumped')
947 946 def _computebumpedset(repo):
947 msg = ("'bumped' volatile set is deprecated, "
948 "use 'phasedivergent'")
949 repo.ui.deprecwarn(msg, '4.4')
950
951 return _computephasedivergentset(repo)
952
953 @cachefor('phasedivergent')
954 def _computephasedivergentset(repo):
948 955 """the set of revs trying to obsolete public revisions"""
949 956 bumped = set()
950 957 # util function (avoid attribute lookup in the loop)
@@ -473,8 +473,8 b' def phasedivergent(repo, subset, x):'
473 473 """
474 474 # i18n: "phasedivergent" is a keyword
475 475 getargs(x, 0, 0, _("phasedivergent takes no arguments"))
476 bumped = obsmod.getrevs(repo, 'bumped')
477 return subset & bumped
476 phasedivergent = obsmod.getrevs(repo, 'phasedivergent')
477 return subset & phasedivergent
478 478
479 479 @predicate('bundle()', safe=True)
480 480 def bundle(repo, subset, x):
General Comments 0
You need to be logged in to leave comments. Login now