Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
49456:cdfba684b6a1 | 49457:53229e170496 |
---|---|
100 | 100 |
101 | 101 |
102 def _use_internal_phase(repo): | 102 def _use_internal_phase(repo): |
103 return ( | 103 return ( |
104 phases.supportinternal(repo) | 104 phases.supportinternal(repo) |
105 and repo.ui.config(b'shelve', b'store') == 'internal' | 105 and repo.ui.config(b'shelve', b'store') == b'internal' |
106 ) | 106 ) |
107 | 107 |
108 | 108 |
109 def _target_phase(repo): | 109 def _target_phase(repo): |
110 return phases.internal if _use_internal_phase(repo) else phases.secret | 110 return phases.internal if _use_internal_phase(repo) else phases.secret |