Synchronize options - TypeError: can only concatenate str (not "bytes") to str
Created originally on Bitbucket by Anonymous
How to reproduce:
- Click the "Synchronize" button
- Click the "Options" button
- Input "default" in the "Branch:" input field
- Click the "Save" button
Stack trace:
#!python
** Mercurial version (5.4.1). TortoiseHg version (5.4.1+6-13c9b451f6b0)
** Command:
** CWD: /home/user
** Encoding: UTF-8
** Extensions loaded: tortoisehg.util.configitems
** Python version: 3.8.2 (default, Apr 27 2020, 15:53:34) [GCC 9.3.0]
** System: Linux localhost 5.4.0-37-generic #41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86_64
** Qt-5.15.0 PyQt-5.15.0 QScintilla-2.11.5
Traceback (most recent call last):
File "/home/user/repository/thg/tortoisehg/hgqt/qtlib.py", line 1339, in showEvent
self.get()
File "/home/user/repository/thg/tortoisehg/hgqt/qtlib.py", line 1351, in get
self._widget = func()
File "/home/user/repository/thg/tortoisehg/hgqt/repowidget.py", line 414, in createSyncWidget
sw = SyncWidget(self._repoagent, self)
File "/home/user/repository/thg/tortoisehg/hgqt/sync.py", line 292, in __init__
self.setEditUrl('')
File "/home/user/repository/thg/tortoisehg/hgqt/sync.py", line 455, in setEditUrl
self.refreshUrl()
File "/home/user/repository/thg/tortoisehg/hgqt/sync.py", line 440, in refreshUrl
opts.append('--'+opt+'='+value)
TypeError: can only concatenate str (not "bytes") to str