diff mercurial/shelve.py @ 49457:53229e170496

phase-shelve: correct unicode string to honor 'shelve.store=internal' In the case of strip-based shelves, there should be no hidden commit found. That's because shelve.store=internal is necessary but not sufficient to enable phase-based shelves; internal-phase must also be set.
author Jason R. Coombs <jaraco@jaraco.com>
date Mon, 22 Aug 2022 16:59:14 -0400
parents 2064bbf7a1d5
children f599a946181d
line wrap: on
line diff
--- a/mercurial/shelve.py	Fri Aug 12 14:35:34 2022 -0700
+++ b/mercurial/shelve.py	Mon Aug 22 16:59:14 2022 -0400
@@ -102,7 +102,7 @@
 def _use_internal_phase(repo):
     return (
         phases.supportinternal(repo)
-        and repo.ui.config(b'shelve', b'store') == 'internal'
+        and repo.ui.config(b'shelve', b'store') == b'internal'
     )