AssertionError when switching to amend-mode after `hg forget`
Created originally on Bitbucket by iwata0303 (H Iwata)
#!python
** Mercurial version (3.0). TortoiseHg version (3.0.2+193-1a06022a8822)
** Command: --nofork
** CWD: d:\TEMP\hgtest2
** Encoding: cp932
** Extensions loaded: histedit, strip, mq, rebase, win32mbcs, transplant, convert, imeoff
** Python version: 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x86
** Qt-4.8.5 PyQt-4.10.4 QScintilla-2.8.1
Traceback (most recent call last):
File "thg\tortoisehg\hgqt\status.py", line 392, in reloadComplete
self.updateModel(self.refthread.wctx, self.refthread.patchecked)
File "thg\tortoisehg\hgqt\status.py", line 441, in updateModel
self.updateCheckCount()
File "thg\tortoisehg\hgqt\status.py", line 516, in updateCheckCount
model.checkCount = len(self.getChecked())
File "thg\tortoisehg\hgqt\status.py", line 548, in getChecked
checked = model.getChecked()
File "thg\tortoisehg\hgqt\status.py", line 993, in getChecked
assert len(self.checked) == len(self.unfiltered)
AssertionError
This is a sample repository to reproduce.
#!console
$ hg init .
$ echo foo>foo
$ hg commit -m "first" -A
$ hg forget foo
$ hg commit -m "forget foo"
Reproduce step::
- show this repository in the workbench
- show commit task tab, and switch to amend mode
Now, self.checked has 1 entry, but self.unfiltered has 2
#!python
> self.checked
{'foo': False}
> self.unfiltered
[['foo', 'R', '', u'foo', '', 1L], ['foo', '?', '', u'foo', '', 1L]]