Commit 60e8cdce authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

python3: add raw prefix to "troubles"-related dicts

The `byteify-strings.py` script cannot know that these will be used in a way
that requires to use a system string without some pretty hardcore hardcoding.
parent 079dbf36e884
...@@ -62,9 +62,9 @@ ...@@ -62,9 +62,9 @@
# Evolution renaming compat # Evolution renaming compat
TROUBLES = { TROUBLES = {
'ORPHAN': 'orphan', r'ORPHAN': 'orphan',
'CONTENTDIVERGENT': 'content-divergent', r'CONTENTDIVERGENT': 'content-divergent',
'PHASEDIVERGENT': 'phase-divergent', r'PHASEDIVERGENT': 'phase-divergent',
} }
if util.safehasattr(uimod.ui, 'makeprogress'): if util.safehasattr(uimod.ui, 'makeprogress'):
......
...@@ -1627,9 +1627,9 @@ ...@@ -1627,9 +1627,9 @@
shouldupdate = opts['update'] shouldupdate = opts['update']
troublecategories = { troublecategories = {
'phasedivergent': 'phase_divergent', 'phasedivergent': r'phase_divergent',
'contentdivergent': 'content_divergent', 'contentdivergent': r'content_divergent',
'orphan': 'orphan', 'orphan': r'orphan',
} }
specifiedcategories = [k for k, v in troublecategories.items() if opts[v]] specifiedcategories = [k for k, v in troublecategories.items() if opts[v]]
if opts['list']: if opts['list']:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment