changeset 6127:4ac6ca50bb2e

evolve: use phases.mutablephases tuple instead of draft+secret It's been introduced in 02f992ac26e9, which is a part of 4.7, the minimum version evolve currently supports.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 11 Feb 2022 18:20:13 +0300
parents e314f6207e5f
children 10ccdee05ec0
files hgext3rd/evolve/obscache.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obscache.py	Fri Feb 11 18:10:51 2022 +0300
+++ b/hgext3rd/evolve/obscache.py	Fri Feb 11 18:20:13 2022 +0300
@@ -433,7 +433,7 @@
 def _computeobsoleteset(orig, repo):
     """the set of obsolete revisions"""
     repo = repo.unfiltered()
-    notpublic = repo._phasecache.getrevset(repo, (phases.draft, phases.secret))
+    notpublic = repo._phasecache.getrevset(repo, phases.mutablephases)
     if notpublic:
         obscache = repo.obsstore.obscache
         # Since we warm the cache at the end of every transaction, the cache