py3: setText for custom date option in commit view
I have the same problem like in #5545 (closed) but with commit view.
Steps:
- Change some files
- Go to commit view
- Select Options and use a custom date
- Commit the files
- Change some other files
- Go to commit view
- Select Option to unselect "custom date"
- Crash window appears
#!python
** Mercurial version (5.5.2). TortoiseHg version (5.6.1)
** Command: --nofork
** CWD: /home/andre
** Encoding: UTF-8
** Extensions loaded: commitsigs, show, share, extdiff, rebase, purge, histedit, convert, gpg, strip, schemes, churn, record, patchbomb, releasenotes, absorb, largefiles, tortoisehg.util.configitems
** Python version: 3.9.0 (default, Oct 7 2020, 23:09:01) [GCC 10.2.0]
** System: Linux t480 5.9.13-arch1-1 #1 SMP PREEMPT Tue, 08 Dec 2020 12:09:55 +0000 x86_64
** Qt-5.15.2 PyQt-5.15.2 QScintilla-2.11.6
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/commit.py", line 717, in details
dlg = DetailsDialog(self._repoagent, self.opts, self.userhist, self,
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/commit.py", line 1269, in __init__
self.datele.setText(v)
TypeError: setText(self, str): argument 1 has unexpected type 'bytes'