AssertionError `clicked is not None` when cancelling update
Steps to reproduce:
- Have a local repository with non-clean status
- Open thg for that repository
- Right click another revision and choose Update
- Click Update in the popup window with options
- See a "Detected uncommitted local changes in working tree." dialog
- Click Cancel in it
Expected result: go back to one of the previous states
Actual result: yet another window appears, titled "TortoiseHg Bug Report", containing:
#!python
** Mercurial version (5.7.1). TortoiseHg version (5.7.1)
** Command:
** CWD: /home/simon/hg
** Encoding: UTF-8
** Extensions loaded: strip, rebase, purge, convert, topic, evolve, histedit, patchbomb, phabricator, share, absorb, tortoisehg.util.configitems
** Python version: 3.8.5 (default, Jan 27 2021, 15:41:15) [GCC 9.3.0]
** System: Linux x1e 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64
** Qt-5.12.8 PyQt-5.14.1 QScintilla-2.11.2
Traceback (most recent call last):
File "/home/simon/thg/tortoisehg/hgqt/cmdui.py", line 648, in runCommand
sess = self.__cmdwidget.runCommand()
File "/home/simon/thg/tortoisehg/hgqt/update.py", line 401, in runCommand
clicked = confirmupdate()
File "/home/simon/thg/tortoisehg/hgqt/update.py", line 391, in confirmupdate
assert clicked is not None # help pytype
AssertionError