diff mercurial/txnutil.py @ 34065:0e0ac8f09048

extensions: prohibit unicode defaults If the default value of an option is a unicode string (something than happen easily when using a 'from __future__ import unicode_literals'), any value passed on the command line will be ignored because the fancyopts module only checks for byte strings and not unicode strings. Changing fancyopts behavior is easy but would make assumptions on how the python3 port should be done, which is outside the scope of this patch. The chosen approach is to stop an extension from being loaded when a unicode default value is detected, with a hint for the developer.
author Christophe de Vienne <christophe@cdevienne.info>
date Tue, 29 Aug 2017 18:24:51 +0200
parents 206532700213
children 2372284d9457
line wrap: on
line diff