Command line "hg qref" causes error on TortoiseHg

Issue #2247 duplicate
Anonymous created an issue

TortoiseHg kindly asked me to report the bug so here I am.

I ran a command line "hg qref" in a console while I had a Tortoise Hg window opened.

This error popped after the qref completed.

** Mercurial version (2.2.3).  TortoiseHg version (2.4.2)
** Command: log
** CWD: E:\*********\Repo
** Encoding: cp1252
** Extensions loaded: acl, churn, eol, relink, mercurial_keyring, CoveoExtensions, reviewboard, transplant, purge, graphlog, mq, hgshelve, extdiff, checkfiles
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7600, platform=2, service_pack='')
** Processor architecture: x64
** Qt-4.8.0 PyQt-4.9.1
Traceback (most recent call last):
  File "tortoisehg\hgqt\repowidget.pyo", line 835, in onRevisionSelected
  File "tortoisehg\hgqt\revdetails.pyo", line 291, in onRevisionSelected
  File "tortoisehg\hgqt\filelistview.pyo", line 61, in setContext
  File "tortoisehg\hgqt\filelistmodel.pyo", line 87, in setContext
  File "tortoisehg\hgqt\filelistmodel.pyo", line 155, in loadFiles
  File "tortoisehg\hgqt\filelistmodel.pyo", line 110, in _buildDesc
  File "mercurial\context.pyo", line 872, in files
  File "mercurial\util.pyo", line 237, in __get__
  File "mercurial\context.pyo", line 829, in _status
  File "mercurial\localrepo.pyo", line 1385, in status
  File "mercurial\context.pyo", line 156, in __contains__
  File "mercurial\util.pyo", line 237, in __get__
  File "mercurial\context.pyo", line 138, in _manifest
  File "mercurial\manifest.pyo", line 54, in read
  File "mercurial\revlog.pyo", line 929, in revision
mpatchError: patch cannot be decoded