diff mercurial/obsolete.py @ 33779: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 6b724caa878d
line wrap: on
line diff
--- a/mercurial/obsolete.py	Fri Aug 04 19:36:27 2017 +0200
+++ b/mercurial/obsolete.py	Fri Aug 04 19:39:34 2017 +0200
@@ -942,9 +942,16 @@
     """the set of obsolete parents without non obsolete descendants"""
     return getrevs(repo, 'obsolete') - getrevs(repo, 'suspended')
 
-
 @cachefor('bumped')
 def _computebumpedset(repo):
+    msg = ("'bumped' volatile set is deprecated, "
+           "use 'phasedivergent'")
+    repo.ui.deprecwarn(msg, '4.4')
+
+    return _computephasedivergentset(repo)
+
+@cachefor('phasedivergent')
+def _computephasedivergentset(repo):
     """the set of revs trying to obsolete public revisions"""
     bumped = set()
     # util function (avoid attribute lookup in the loop)