Error while searching after branch close/change
Created originally on Bitbucket by j2jensen (James Jensen)
Steps to reproduce:
Use the "Branch" dropdown in the Search bar to choose an old branch. Update to the top node of this branch. Click the "Working Directory" node that appears, choose to close the current branch, and commit. Use the "Branch" dropdown to choose another branch. Right-click the head node. Note that the "Update" option is greyed out.
You can get around this first bug by left-clicking another node, then left-clicking the original node and right-clicking it again. However, if you //don't// do this, but instead change the Branch selector to "Show all", and then enter a search in the search bar (I did "branch(2011.11)"), then you get an error like this:
{{{ #!python ** Mercurial version (2.1). TortoiseHg version (2.3) ** Command: ** CWD: D:\Work\Modus ** Encoding: cp1252 ** Extensions loaded: rebase, extdiff, mq ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] ** Windows version: (6, 1, 7601, 2, 'Service Pack 1') ** Processor architecture: x64 ** Qt-4.7.4 PyQt-4.8.6 Traceback (most recent call last): File "tortoisehg\hgqt\repowidget.pyo", line 519, in setRevisionSet File "tortoisehg\hgqt\repowidget.pyo", line 916, in refresh File "tortoisehg\hgqt\revdetails.pyo", line 298, in reload File "mercurial\localrepo.pyo", line 234, in contains File "mercurial\localrepo.pyo", line 596, in lookup File "mercurial\revlog.pyo", line 710, in _match TypeError: object of type 'NoneType' has no len() Traceback (most recent call last): File "tortoisehg\hgqt\repowidget.pyo", line 519, in setRevisionSet File "tortoisehg\hgqt\repowidget.pyo", line 916, in refresh File "tortoisehg\hgqt\revdetails.pyo", line 298, in reload File "mercurial\localrepo.pyo", line 234, in contains File "mercurial\localrepo.pyo", line 596, in lookup File "mercurial\revlog.pyo", line 710, in _match TypeError: object of type 'NoneType' has no len()
}}}
After this point, clearing the search text or using new search text consistently causes this error to occur until TortoiseHg is restarted.