Error when creating a new branch with none of the modified files checked
Let's say you are working on some changes and have some changes in your working directory. You want to create a branch, but don't want any of those changes in the commit in which you create the branch (i.e. the branch creation commit should have no file changes in it). If you uncheck all the files in the commit window, you get the following error:
#!python
** Mercurial version (5.6). TortoiseHg version (5.6)
** Command:
** CWD: /Applications
** Encoding: utf-8
** Extensions loaded: convert, share, rebase, strip, mq, purge, graphlog, extdiff, children, customsource, amend, closehead, tortoisehg.util.configitems
** Python version: 2.7.17 (default, Feb 6 2020, 15:30:19) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)]
** System: Darwin Darios-New-MBP.lan 19.6.0 Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64 x86_64
** Qt-5.9.9 PyQt-5.13.2 QScintilla-2.11.4
Traceback (most recent call last):
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/commit.py", line 619, in mqPerformAction
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/commit.py", line 1138, in commit
AssertionError: {'MyFile.swift': <header MyFile.swift>}
Where 'MyFile.swift' is the file that was unchecked in the modified files list