comparison mercurial/ui.py @ 35911:704095e27c5c

py3: add b'' to tweakdefaults config string The tweakdefaults config string is enclosed inside triple quotes and the transformer does not adds b'' there. # skip-blame because we are just adding b'' Differential Revision: https://phab.mercurial-scm.org/D2037
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 04 Feb 2018 15:41:37 +0530
parents 72de5c504833
children efbd04238029
comparison
equal deleted inserted replaced
35910:b82c6dd15f5d 35911:704095e27c5c
43 # for use with str.translate(None, _keepalnum), to keep just alphanumerics 43 # for use with str.translate(None, _keepalnum), to keep just alphanumerics
44 _keepalnum = ''.join(c for c in map(pycompat.bytechr, range(256)) 44 _keepalnum = ''.join(c for c in map(pycompat.bytechr, range(256))
45 if not c.isalnum()) 45 if not c.isalnum())
46 46
47 # The config knobs that will be altered (if unset) by ui.tweakdefaults. 47 # The config knobs that will be altered (if unset) by ui.tweakdefaults.
48 tweakrc = """ 48 tweakrc = b"""
49 [ui] 49 [ui]
50 # The rollback command is dangerous. As a rule, don't use it. 50 # The rollback command is dangerous. As a rule, don't use it.
51 rollback = False 51 rollback = False
52 # Make `hg status` report copy information 52 # Make `hg status` report copy information
53 statuscopies = yes 53 statuscopies = yes