TortoiseHg crashes when refreshing after deleting/applying an MQ unapplied patch
Created originally on Bitbucket by Mischiew Rithe
As requested.
TortoiseHg 4.9.1, win7 x64
To reproduce:
(1)
- commit a modification in MQ
- unapply the patch
- delete the patch (I kept the patch file when doing the test)
- refresh (F5)
- => crash
(2)
- commit a modification in MQ
- unapply the patch
- apply the patch
- refresh (F5)
- => crash
#!python
** Mercurial version (4.9.1). TortoiseHg version (4.9.1)
** Command: --nofork workbench
** CWD: E:\project\test
** Encoding: cp1252
** Extensions loaded: eol, strip, mq, 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=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehg\hgqt\workbench.pyo", line 875, in refresh
File "tortoisehg\hgqt\repowidget.pyo", line 939, in reload
File "tortoisehg\hgqt\repowidget.pyo", line 951, in reloadTaskTab
File "tortoisehg\hgqt\revdetails.pyo", line 359, in reload
File "mercurial\localrepo.pyo", line 1335, in contains
File "tortoisehg\hgqt\thgrepo.pyo", line 772, in getitem
File "mercurial\localrepo.pyo", line 1315, in getitem
ProgrammingError: unsupported changeid '2019-07-21_15-10-49_r65+.diff' of type