##// 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 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, "
@@ -942,9 +942,16 b' def _computeextinctset(repo):'
942 """the set of obsolete parents without non obsolete descendants"""
942 """the set of obsolete parents without non obsolete descendants"""
943 return getrevs(repo, 'obsolete') - getrevs(repo, 'suspended')
943 return getrevs(repo, 'obsolete') - getrevs(repo, 'suspended')
944
944
945
946 @cachefor('bumped')
945 @cachefor('bumped')
947 def _computebumpedset(repo):
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 """the set of revs trying to obsolete public revisions"""
955 """the set of revs trying to obsolete public revisions"""
949 bumped = set()
956 bumped = set()
950 # util function (avoid attribute lookup in the loop)
957 # util function (avoid attribute lookup in the loop)
@@ -473,8 +473,8 b' def phasedivergent(repo, subset, x):'
473 """
473 """
474 # i18n: "phasedivergent" is a keyword
474 # i18n: "phasedivergent" is a keyword
475 getargs(x, 0, 0, _("phasedivergent takes no arguments"))
475 getargs(x, 0, 0, _("phasedivergent takes no arguments"))
476 bumped = obsmod.getrevs(repo, 'bumped')
476 phasedivergent = obsmod.getrevs(repo, 'phasedivergent')
477 return subset & bumped
477 return subset & phasedivergent
478
478
479 @predicate('bundle()', safe=True)
479 @predicate('bundle()', safe=True)
480 def bundle(repo, subset, x):
480 def bundle(repo, subset, x):
General Comments 0
You need to be logged in to leave comments. Login now