py3: Traceback when attempting to close branch
Created originally on Bitbucket by cbillington (Chris Billington)
To reproduce:
- Click the branch options button above the commit text entry
- Select "close current branch"
- Click OK
#!python
** Mercurial version (5.2). TortoiseHg version (5.1+242-04db28b10b0b)
** Command:
** CWD: /home/bilbo/labscript_suite/labscript_utils
** Encoding: UTF-8
** Extensions loaded: strip, mq, churn, rebase, tortoisehg.util.configitems
** Python version: 3.8.0 (default, Oct 23 2019, 18:51:26) [GCC 9.2.0]
** System: Linux bilbo-arch 5.4.1-arch1-1 #1 SMP PREEMPT Fri, 29 Nov 2019 13:37:24 +0000 x86_64
** Qt-5.13.2 PyQt-5.13.2 QScintilla-2.11.3
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/commit.py", line 805, in branchOp
engmsg = self.repo.ui.configbool(
File "/usr/lib/python3.8/site-packages/mercurial/ui.py", line 688, in configbool
v = self._config(section, name, default, untrusted=untrusted)
File "/usr/lib/python3.8/site-packages/mercurial/ui.py", line 585, in _config
msg %= (section, name)
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'