thg issueshttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues2020-08-13T11:06:37Zhttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5486py3: traceback on "merge with local"2020-08-13T11:06:37ZBitbucket Importerpy3: traceback on "merge with local"*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
To reproduce:
* Right click on a different head, click "merge with local"
Result is the foll...*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
To reproduce:
* Right click on a different head, click "merge with local"
Result is the following traceback:
```python
#!python
** Mercurial version (5.2+209-d3c4368099ed). TortoiseHg version (5.1+210-99ffcab6a93a)
** Command: --nofork
** CWD: /home/bilbo
** 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 4.19.84-1-lts #1 SMP Tue, 12 Nov 2019 22:19:52 +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/repowidget.py", line 1850, in mergeWithRevision
self._dialogs.open(RepoWidget._createMergeDialog, rev)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/qtlib.py", line 1255, in open
dlg = self._preparedlg(self._genkey(self.parent(), *args, **kwargs),
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/qtlib.py", line 1276, in _preparedlg
return self._populatedlg(key, args, kwargs)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/qtlib.py", line 1279, in _populatedlg
dlg = self._createdlg(self.parent(), *args, **kwargs)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repowidget.py", line 172, in <lambda>
lambda self, dlgmeth, *args: dlgmeth(self, *args), parent=self)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repowidget.py", line 1853, in _createMergeDialog
return merge.MergeDialog(self._repoagent, rev, self)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/merge.py", line 73, in __init__
self.addPage(ResultPage(repoagent, self))
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/merge.py", line 680, in __init__
mergeCsInfo = csinfo.create(self.repo, 'tip', withupdate=True)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/csinfo.py", line 38, in create
return Factory(repo, custom, style, target, **kargs)()
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/csinfo.py", line 105, in __call__
widget = SummaryPanel(*args)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/csinfo.py", line 412, in __init__
SummaryBase.__init__(self, target, custom, repo, info)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/csinfo.py", line 375, in __init__
self.ctx = repo[self.target]
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/thgrepo.py", line 796, in __getitem__
changectx = super(thgrepository, self).__getitem__(changeid)
File "/usr/lib/python3.8/site-packages/mercurial/localrepo.py", line 1570, in __getitem__
b"unsupported changeid '%s' of type %s"
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5484py3: Rollback confirmation dialog contains bytestring prefix2020-06-21T11:20:49ZBitbucket Importerpy3: Rollback confirmation dialog contains bytestring prefix*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
To reproduce:
* Make a commitest
* Click repository > rollback/undo
The message in the confirm...*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
To reproduce:
* Make a commitest
* Click repository > rollback/undo
The message in the confirmation dialog that pop up says: "Rollback to revision 6 (undo b'commit')?"https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5483py3: traceback on `thg blame`2020-06-21T11:20:48ZBitbucket Importerpy3: traceback on `thg blame`*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
I get a traceback running `thg blame <some_file>` from the command line.
```python
#!pytho...*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
I get a traceback running `thg blame <some_file>` from the command line.
```python
#!python
** Mercurial version (5.2+209-d3c4368099ed). TortoiseHg version (5.1+198-78dc5479b8fb)
** Command: blame /home/bilbo/labscript_suite/labscript_devices/NI_DAQmx/blacs_workers.py
** CWD: /home/bilbo/labscript_suite/labscript_devices/NI_DAQmx
** 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 4.19.84-1-lts #1 SMP Tue, 12 Nov 2019 22:19:52 +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/run.py", line 138, in dispatch
return _runcatch(u, args)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/run.py", line 342, in _runcatch
return runcommand(ui, args)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/run.py", line 436, in runcommand
return _runcommand(lui, options, cmd, d)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/run.py", line 488, in _runcommand
return checkargs()
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/run.py", line 441, in checkargs
return cmdfunc()
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/run.py", line 434, in <lambda>
d = lambda: qtrun(checkedfunc, ui, *args,
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/qtapp.py", line 464, in __call__
dlg, reporoot = self._createdialog(dlgfunc, args, opts)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/qtapp.py", line 528, in _createdialog
return dlgfunc(self._ui, *args, **opts), reporoot
File "/usr/lib/python3.8/site-packages/mercurial/util.py", line 1840, in check
return func(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/run.py", line 568, in annotate
dlg = filelog(ui, repoagent, *pats, **opts)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/run.py", line 751, in filelog
filename = hglib.canonpaths(pats)[0]
File "/usr/lib/python3.8/site-packages/tortoisehg/util/hglib.py", line 379, in canonpaths
canonpats.append(pathutil.canonpath(root, cwd, f))
File "/usr/lib/python3.8/site-packages/mercurial/pathutil.py", line 195, in canonpath
if util.endswithsep(root):
File "/usr/lib/python3.8/site-packages/mercurial/util.py", line 2268, in endswithsep
path.endswith(pycompat.ossep)
TypeError: endswith first arg must be str or a tuple of str, not bytes
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5482py3: traceback upon repository > shelve2020-07-04T21:19:33ZBitbucket Importerpy3: traceback upon repository > shelve*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
To reproduce: click repository > shelve
traceback:
```python
#!python
** Mercurial ...*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
To reproduce: click repository > shelve
traceback:
```python
#!python
** Mercurial version (5.2+209-d3c4368099ed). TortoiseHg version (5.1+198-78dc5479b8fb)
** Command:
** CWD: /home/bilbo/labscript_suite/labscript_devices/SoftwareDevice/testing
** 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 4.19.84-1-lts #1 SMP Tue, 12 Nov 2019 22:19:52 +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/workbench.py", line 871, in forwarder
getattr(w, name)(*params, **namedparams)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repowidget.py", line 768, in shelve
self._dialogs.open(RepoWidget._createShelveDialog)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/qtlib.py", line 1249, in open
dlg = self._preparedlg(self._genkey(self.parent(), *args, **kwargs),
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/qtlib.py", line 1270, in _preparedlg
return self._populatedlg(key, args, kwargs)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/qtlib.py", line 1273, in _populatedlg
dlg = self._createdlg(self.parent(), *args, **kwargs)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repowidget.py", line 172, in <lambda>
lambda self, dlgmeth, *args: dlgmeth(self, *args), parent=self)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/repowidget.py", line 771, in _createShelveDialog
dlg = shelve.ShelveDialog(self._repoagent)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/shelve.py", line 218, in __init__
self.refreshCombos()
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/shelve.py", line 472, in refreshCombos
self.comboBChanged(idxb)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/shelve.py", line 503, in comboBChanged
self.browseb.setContext(self.repo[rev])
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/thgrepo.py", line 796, in __getitem__
changectx = super(thgrepository, self).__getitem__(changeid)
File "/usr/lib/python3.8/site-packages/mercurial/localrepo.py", line 1570, in __getitem__
b"unsupported changeid '%s' of type %s"
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'type'
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/chunks.py", line 479, in displayFile
self.diffbrowse.displayFile(file, status)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/chunks.py", line 755, in displayFile
fd = filedata.createFileData(self._ctx, None, filename, status)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/filedata.py", line 796, in createFileData
return FileData(ctx, ctx2, wfile, status, rpath, mstatus)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/filedata.py", line 216, in __init__
super(FileData, self).__init__(ctx, pctx, path, status, rpath)
File "/usr/lib/python3.8/site-packages/tortoisehg/hgqt/filedata.py", line 85, in __init__
self._textencoding = fileencoding.contentencoding(ctx._repo.ui)
AttributeError: 'NoneType' object has no attribute '_repo'
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5480py3: can't add new files to commit2020-06-21T11:20:45ZBitbucket Importerpy3: can't add new files to commit*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
When selecting previously untracked files to add to a commit, upon clicking the commit button, one ...*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
When selecting previously untracked files to add to a commit, upon clicking the commit button, one gets a "nothing changed" popup message and the following error in the console output:
```
% hg add -- b'SoftwareDevice/__init__.py' b'SoftwareDevice/blacs_tabs.py' b'SoftwareDevice/blacs_workers.py' b'SoftwareDevice/labscript_devices.py' b'SoftwareDevice/register_classes.py' b'SoftwareDevice/testing/test.py' b'SoftwareDevice/utils.py'
b'SoftwareDevice/__init__.py': No such file or directory
b'SoftwareDevice/blacs_tabs.py': No such file or directory
b'SoftwareDevice/blacs_workers.py': No such file or directory
b'SoftwareDevice/labscript_devices.py': No such file or directory
b'SoftwareDevice/register_classes.py': No such file or directory
b'SoftwareDevice/testing/test.py': No such file or directory
b'SoftwareDevice/utils.py': No such file or directory
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5478py3: traceback upon clicking to edit config file2020-06-21T11:20:43ZBitbucket Importerpy3: traceback upon clicking to edit config file*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
I get the following upon clicking "edit file" in the repo settings to edit the hgrc file:
```pyt...*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
I get the following upon clicking "edit file" in the repo settings to edit the hgrc file:
```python
#!python
** Mercurial version (5.2+86-a78a65c33b5a). TortoiseHg version (5.1+189-2660c64eacb4)
** Command:
** CWD: /home/bilbo/labscript_suite/userlib/pythonlib/alkali
** Encoding: UTF-8
** Extensions loaded: strip, mq, churn, rebase, tortoisehg.util.configitems
** Python version: 3.7.4 (default, Oct 4 2019, 06:57:26) [GCC 9.2.0]
** System: Linux bilbo-arch 4.19.83-1-lts #1 SMP Sun, 10 Nov 2019 11:29:44 +0000 x86_64
** Qt-5.13.2 PyQt-5.13.2 QScintilla-2.11.3
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/settings.py", line 1550, in editClicked
qscilib.fileEditor(self.fn, foldable=True)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/qscilib.py", line 864, in fileEditor
if not readFile(editor, filename):
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/qscilib.py", line 751, in readFile
if '\0' in earlybytes:
TypeError: a bytes-like object is required, not 'str'
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5477py3: traceback upon open terminal2020-06-21T11:20:42ZBitbucket Importerpy3: traceback upon open terminal*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
I get the following upon pressing ctrl-shift-T to open a terminal in the repo directory:
```pyth...*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
I get the following upon pressing ctrl-shift-T to open a terminal in the repo directory:
```python
#!python
** Mercurial version (5.2+86-a78a65c33b5a). TortoiseHg version (5.1+189-2660c64eacb4)
** Command:
** CWD: /home/bilbo/labscript_suite/userlib/pythonlib/alkali
** Encoding: UTF-8
** Extensions loaded: strip, mq, churn, rebase, tortoisehg.util.configitems
** Python version: 3.7.4 (default, Oct 4 2019, 06:57:26) [GCC 9.2.0]
** System: Linux bilbo-arch 4.19.83-1-lts #1 SMP Sun, 10 Nov 2019 11:29:44 +0000 x86_64
** Qt-5.13.2 PyQt-5.13.2 QScintilla-2.11.3
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/workbench.py", line 1190, in terminal
w.repo.ui)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/qtlib.py", line 262, in openshell
shell, args = terminal.detectterminal(ui)
File "/usr/lib/python3.7/site-packages/tortoisehg/util/terminal.py", line 106, in detectterminal
name, pathorconfig = _findterminal(ui_)
File "/usr/lib/python3.7/site-packages/tortoisehg/util/terminal.py", line 84, in _findterminal
terminal = ui.config('tortoisehg', 'shell')
File "/usr/lib/python3.7/site-packages/mercurial/ui.py", line 566, in config
section, name, default=default, untrusted=untrusted
File "/usr/lib/python3.7/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'
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5476py3: traceback upon running vdiff2020-06-21T11:20:41ZBitbucket Importerpy3: traceback upon running vdiff*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
I'm on Arch Linux with a development build of mercurial and a custom package for installing tortois...*Created originally on Bitbucket by [cbillington (Chris Billington)](https://bitbucket.org/%7Be363c5a9-5075-4656-afb5-88bd6a6dceeb%7D/)*
I'm on Arch Linux with a development build of mercurial and a custom package for installing tortoisehg for python 3. Arch is rapidly dropping Python 2 components, and it's getting harder to keep the required Python 2 components around for thg. So I'm running it on Python 3 - it's hitting many issues but I'm just going to report them all and hopefully things will be in shape at some point!
Here's what I get when I run `thg vdiff <some_file>`
```python
#!python
** Mercurial version (5.2+86-a78a65c33b5a). TortoiseHg version (5.1+189-2660c64eacb4)
** Command: vdiff /home/bilbo/labscript_suite/userlib/pythonlib/alkali/atom.py
** CWD: /home/bilbo/labscript_suite/userlib/pythonlib/alkali
** Encoding: UTF-8
** Extensions loaded: strip, mq, churn, rebase, tortoisehg.util.configitems
** Python version: 3.7.4 (default, Oct 4 2019, 06:57:26) [GCC 9.2.0]
** System: Linux bilbo-arch 4.19.83-1-lts #1 SMP Sun, 10 Nov 2019 11:29:44 +0000 x86_64
** Qt-5.13.2 PyQt-5.13.2 QScintilla-2.11.3
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 138, in dispatch
return _runcatch(u, args)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 342, in _runcatch
return runcommand(ui, args)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 435, in runcommand
return _runcommand(lui, options, cmd, d)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 487, in _runcommand
return checkargs()
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 440, in checkargs
return cmdfunc()
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 434, in <lambda>
**pycompat.strkwargs(cmdoptions))
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/qtapp.py", line 464, in __call__
dlg, reporoot = self._createdialog(dlgfunc, args, opts)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/qtapp.py", line 528, in _createdialog
return dlgfunc(self._ui, *args, **opts), reporoot
File "/usr/lib/python3.7/site-packages/mercurial/util.py", line 1843, in check
return func(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 1417, in vdiff
pats = hglib.canonpaths(pats)
File "/usr/lib/python3.7/site-packages/tortoisehg/util/hglib.py", line 379, in canonpaths
canonpats.append(pathutil.canonpath(root, cwd, f))
File "/usr/lib/python3.7/site-packages/mercurial/pathutil.py", line 191, in canonpath
if util.endswithsep(root):
File "/usr/lib/python3.7/site-packages/mercurial/util.py", line 2271, in endswithsep
path.endswith(pycompat.ossep)
TypeError: endswith first arg must be str or a tuple of str, not bytes
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5475py3: ui.language2020-06-21T11:20:40ZBitbucket Importerpy3: ui.language*Created originally on Bitbucket by [André Klitzing](https://bitbucket.org/%7Bbe572446-3da4-4dd0-a388-1e28bb341de5%7D/)*
Hi there,
tried current version \(37a8b66f481d\) and I got an exception on startup with python3.
```
#!p...*Created originally on Bitbucket by [André Klitzing](https://bitbucket.org/%7Bbe572446-3da4-4dd0-a388-1e28bb341de5%7D/)*
Hi there,
tried current version \(37a8b66f481d\) and I got an exception on startup with python3.
```
#!python
** Mercurial version (5.2). TortoiseHg version (5.1+185-37a8b66f481d)
** Command:
** Encoding: UTF-8
** Extensions loaded:
** Python version: 3.7.4 (default, Oct 4 2019, 06:57:26) [GCC 9.2.0]
** System: Linux t480 5.3.10-arch1-1 #1 SMP PREEMPT Sun, 10 Nov 2019 11:29:38 +0000 x86_64
** Qt-5.13.2 PyQt-5.13.2 QScintilla-2.11.3
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 138, in dispatch
return _runcatch(u, args)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 342, in _runcatch
return runcommand(ui, args)
File "/usr/lib/python3.7/site-packages/tortoisehg/hgqt/run.py", line 378, in runcommand
i18n.setlanguage(ui.config(b'tortoisehg', b'ui.language'))
File "/usr/lib/python3.7/site-packages/tortoisehg/util/i18n.py", line 51, in setlanguage
fallback=True, **opts)
File "/usr/lib/python3.7/gettext.py", line 518, in translation
mofiles = find(domain, localedir, languages, all=True)
File "/usr/lib/python3.7/gettext.py", line 490, in find
for nelang in _expand_lang(lang):
File "/usr/lib/python3.7/gettext.py", line 212, in _expand_lang
loc = locale.normalize(loc)
File "/usr/lib/python3.7/locale.py", line 402, in normalize
if ':' in code:
TypeError: a bytes-like object is required, not 'str'
```
Reason in ~/.hgrc:
```
[tortoisehg]
ui.language = en
```
If I remove this it works.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5474Issue happen when try to graft2020-09-26T02:54:06ZBitbucket ImporterIssue happen when try to graft*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.7.1). TortoiseHg version (4.7.1)
** Command:
** CWD: /Users/eutech
** Encoding: utf-8
** Extensions loaded: purge, tortoisehg.util...*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.7.1). TortoiseHg version (4.7.1)
** Command:
** CWD: /Users/eutech
** Encoding: utf-8
** Extensions loaded: purge, tortoisehg.util.configitems
** Python version: 2.7.15 (default, Jun 26 2018, 23:08:04) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]
** System: Darwin Eutechs-MBP.mshome.net 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
** Qt-5.9.6 PyQt-5.9.2 QScintilla-2.10.4
Traceback (most recent call last):
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/repowidget.py", line 1841, in graftRevisions
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/graft.py", line 62, in __init__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/graft.py", line 58, in cleanrevlist
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/scmutil.py", line 545, in revsymbol
RepoLookupError: unknown revision '¢EnodesX(37a094e9018fd6c1f0b9ceb7e834571bca9b041aHnewnodes€'
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5466Broken links to "edit on bitbucket" in ReadTheDocs2020-08-19T13:52:02ZBitbucket ImporterBroken links to "edit on bitbucket" in ReadTheDocs*Created originally on Bitbucket by [teo8976 (Teo Tei)](https://bitbucket.org/%7B4d381d15-4c61-4a29-9de3-d1b5a89dbb2a%7D/)*
[https://tortoisehg.readthedocs.io/en/latest/faq.html](https://tortoisehg.readthedocs.io/en/latest/faq.html)
...*Created originally on Bitbucket by [teo8976 (Teo Tei)](https://bitbucket.org/%7B4d381d15-4c61-4a29-9de3-d1b5a89dbb2a%7D/)*
[https://tortoisehg.readthedocs.io/en/latest/faq.html](https://tortoisehg.readthedocs.io/en/latest/faq.html)
or any other page of the docs.
The link “Edit on BitBucket” at the top of the page is broken:
```
https://bitbucket.org/tortoisehg/thg//src/stable/doc/source/faq.txt?mode=view
```
There’s an excess `/` between “thg” and “src”.
I searched the source code of the docs but can’t find anything that seems to be realted to those links. I guess it’s a configuration in the ReadTheDocs project?
@{557058:4b06a480-f21c-438a-ac32-49c7e6bffe0a}https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5465Commit while "Check for incomming changes" result is displayed causes exception2020-09-26T04:28:01ZBitbucket ImporterCommit while "Check for incomming changes" result is displayed causes exception*Created originally on Bitbucket by [wilfreddijksman (Wilfred Dijksman)](https://bitbucket.org/%7B927b1442-f256-4134-ab43-429f76644dc1%7D/)*
**Steps to reproduce**
1. Add a commit message.
2. Click "Check for incoming changes".
3. Wait...*Created originally on Bitbucket by [wilfreddijksman (Wilfred Dijksman)](https://bitbucket.org/%7B927b1442-f256-4134-ab43-429f76644dc1%7D/)*
**Steps to reproduce**
1. Add a commit message.
2. Click "Check for incoming changes".
3. Wait till the result \(incoming changes\) are shown.
4. Click "Commit".
5. Exception in attachments pops up.
Situation occurred in a sub repository. Unknown if this bug also occurred in a main repository.
*Attachments:* [2019-10-09_13_54_43-Commit](/uploads/17d3c2fc883306e4116a20a4bd961af8/2019-10-09_13_54_43-Commit.png)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5461dirstate: This file is currently not available for use on this computer2020-06-28T07:01:05ZBitbucket Importerdirstate: This file is currently not available for use on this computer*Created originally on Bitbucket by Anonymous*
I get this error when I click on Visual Diff:
```
#!python
** Mercurial version (2.2.2). TortoiseHg version (2.4.1)
** Command: --nofork vdiff --listfile C:\Users\cbaouche\AppData\Local\T...*Created originally on Bitbucket by Anonymous*
I get this error when I click on Visual Diff:
```
#!python
** Mercurial version (2.2.2). TortoiseHg version (2.4.1)
** Command: --nofork vdiff --listfile C:\Users\cbaouche\AppData\Local\Temp\THG8393.tmp
** CWD: Z:\workspace.grp\GRP_8-17\GRP
** Encoding: cp1252
** Extensions loaded:
** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
** Windows version: (6, 2, 9200, 2, '')
** Processor architecture: x64
** Qt-4.7.4 PyQt-4.8.6
Traceback (most recent call last):
File "tortoisehg\hgqt\run.pyo", line 554, in __call__
File "tortoisehg\hgqt\visdiff.pyo", line 624, in run
File "tortoisehg\hgqt\visdiff.pyo", line 194, in visualdiff
File "mercurial\scmutil.pyo", line 522, in revpair
File "mercurial\dirstate.pyo", line 231, in p1
File "mercurial\util.pyo", line 237, in __get__
File "mercurial\dirstate.pyo", line 102, in _pl
File "mercurial\scmutil.pyo", line 260, in __call__
File "mercurial\windows.pyo", line 36, in posixfile
IOError: [Errno 22] Z:\workspace.grp\GRP_8-17\GRP\.hg\dirstate: This file is currently not available for use on this computer
```
Thanks!https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5460Where will TortoiseHg move when bitbucket sunsets the mercurial support?2020-06-28T06:57:52ZBitbucket ImporterWhere will TortoiseHg move when bitbucket sunsets the mercurial support?*Created originally on Bitbucket by [-tukanos- (Patrik Svestka)](https://bitbucket.org/%7B92c5ef06-63a1-4c4b-b2d0-b8cd2ede278c%7D/)*
This is really not a TortoiseHg bug, but still it is rather Atlassian one, but still affects TortoiseHg...*Created originally on Bitbucket by [-tukanos- (Patrik Svestka)](https://bitbucket.org/%7B92c5ef06-63a1-4c4b-b2d0-b8cd2ede278c%7D/)*
This is really not a TortoiseHg bug, but still it is rather Atlassian one, but still affects TortoiseHg. Where do you plan to move your project after [Atlassian sunsets mercurial support](https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket)?https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5458Web page advertise 32 bit 5.02 (download)2020-06-28T07:18:07ZBitbucket ImporterWeb page advertise 32 bit 5.02 (download)*Created originally on Bitbucket by Anonymous*
Web page have 32 bit version, but button does not work, because a 32 bit version is not available. Ver 4.6 seem like the latest 32 bit version available..*Created originally on Bitbucket by Anonymous*
Web page have 32 bit version, but button does not work, because a 32 bit version is not available. Ver 4.6 seem like the latest 32 bit version available..https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5453KeyError: <type 'unicode'>2022-10-08T03:34:17ZBitbucket ImporterKeyError: <type 'unicode'>*Created originally on Bitbucket by Anonymous*
```
Traceback (most recent call last):
File "thg", line 128, in <module>
File "tortoisehg\hgqt\run.pyo", line 73, in dispatch
File "tortoisehg\hgqt\qtapp.pyo", line 111, in earlyExcep...*Created originally on Bitbucket by Anonymous*
```
Traceback (most recent call last):
File "thg", line 128, in <module>
File "tortoisehg\hgqt\run.pyo", line 73, in dispatch
File "tortoisehg\hgqt\qtapp.pyo", line 111, in earlyExceptionMsgBox
KeyError: <type 'unicode'>
Traceback (most recent call last):
File "thg", line 128, in <module>
File "tortoisehg\hgqt\run.pyo", line 73, in dispatch
File "tortoisehg\hgqt\qtapp.pyo", line 111, in earlyExceptionMsgBox
KeyError: <type 'unicode'>
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5452It's too slow and hangs all the time.2020-08-19T03:56:19ZBitbucket ImporterIt's too slow and hangs all the time.*Created originally on Bitbucket by Anonymous*
Most of time, it got hang if I perform some quick mouse operation.
All the time has to quit.
it's my compulsion to use this software.*Created originally on Bitbucket by Anonymous*
Most of time, it got hang if I perform some quick mouse operation.
All the time has to quit.
it's my compulsion to use this software.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5448bug2020-07-04T20:33:56ZBitbucket Importerbug*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (5.0.2). TortoiseHg version (5.0.2)
** Command: --nofork commit
** CWD: C:\Work\Logoshuffle
** Encoding: cp1252
** Extensions loaded: ...*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (5.0.2). TortoiseHg version (5.0.2)
** Command: --nofork commit
** CWD: C:\Work\Logoshuffle
** Encoding: cp1252
** Extensions loaded: tortoisehg.util.configitems
** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehg\hgqt\run.pyo", line 71, in dispatch
File "tortoisehg\hgqt\run.pyo", line 274, in _runcatch
File "tortoisehg\hgqt\run.pyo", line 365, in runcommand
File "tortoisehg\hgqt\run.pyo", line 417, in _runcommand
File "tortoisehg\hgqt\run.pyo", line 370, in checkargs
File "tortoisehg\hgqt\run.pyo", line 364, in <lambda>
File "tortoisehg\hgqt\qtapp.pyo", line 459, in __call__
File "tortoisehg\hgqt\qtapp.pyo", line 523, in _createdialog
File "mercurial\util.pyo", line 1680, in check
File "tortoisehg\hgqt\run.pyo", line 584, in commit
File "tortoisehg\hgqt\commit.pyo", line 1481, in __init__
File "tortoisehg\hgqt\commit.pyo", line 220, in __init__
File "tortoisehg\hgqt\status.pyo", line 245, in __init__
File "tortoisehg\hgqt\fileview.pyo", line 184, in __init__
File "tortoisehg\hgqt\filedata.pyo", line 809, in createNullData
File "tortoisehg\hgqt\thgrepo.pyo", line 772, in __getitem__
File "mercurial\localrepo.pyo", line 1338, in __getitem__
File "mercurial\repoview.pyo", line 228, in changelog
File "mercurial\repoview.pyo", line 167, in filterrevs
File "mercurial\repoview.pyo", line 77, in computehidden
File "mercurial\repoview.pyo", line 32, in hideablerevs
File "mercurial\localrepo.pyo", line 100, in __get__
File "mercurial\scmutil.pyo", line 1451, in __get__
File "mercurial\localrepo.pyo", line 1241, in _phasecache
File "mercurial\phases.pyo", line 225, in __init__
File "mercurial\phases.pyo", line 168, in _readroots
ValueError: need more than 1 value to unpack
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5445Mac instructions to build DMG2020-07-04T21:23:59ZBitbucket ImporterMac instructions to build DMG*Created originally on Bitbucket by [steve-spencer (Steve Spencer)](https://bitbucket.org/%7Bd69f41bc-9c67-429f-a8e9-56732ec7198e%7D/)*
The binaries for Thg on Mac OS X lag far behind the current version \(e.g. 4.7 vs 5\), and 4.7 via t...*Created originally on Bitbucket by [steve-spencer (Steve Spencer)](https://bitbucket.org/%7Bd69f41bc-9c67-429f-a8e9-56732ec7198e%7D/)*
The binaries for Thg on Mac OS X lag far behind the current version \(e.g. 4.7 vs 5\), and 4.7 via the DMG binary is pretty bad, with window panels that don’t collapse.
I’m exploring building from source, but the docs are out of date, it’s unclear which route to use, the packages are ancient, and it takes a very long time. My team needs a DMG. I’d like to build the DMG itself, but have no idea how to go about that. Is it possible for this to be documented, such that the community can more easily produce DMG files for the latest Thg?https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5443same problem as always: mercurial 5.1 is out, tortoisehg 5.1 is not. please f...2020-07-04T21:27:53ZBitbucket Importersame problem as always: mercurial 5.1 is out, tortoisehg 5.1 is not. please fix, or remove the hard version requirement.*Created originally on Bitbucket by [Lance Corrimal](https://bitbucket.org/%7B7de3532a-885a-4df5-80e3-69f739addf0d%7D/)*
same problem as always: mercurial 5.1 is out, tortoisehg 5.1 is not. please fix, or remove the hard version require...*Created originally on Bitbucket by [Lance Corrimal](https://bitbucket.org/%7B7de3532a-885a-4df5-80e3-69f739addf0d%7D/)*
same problem as always: mercurial 5.1 is out, tortoisehg 5.1 is not. please fix, or remove the hard version requirement.