Error when removing repository clone

Issue #4866 duplicate
DaveInCaz
created an issue

THG asked me to report this.

I think this occurred because I removed the local clone of the repository which was open in the current active tab in THG.

** Mercurial version (4.1).  TortoiseHg version (4.1)
** Command: 
** CWD: C:\WINDOWS
** Encoding: cp1252
** Extensions loaded: convert, graphlog, svnbindings, eol, strip, transplant, rebase, relink, extdiff, evolve, collapse
** Python version: 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.7 PyQt-4.11.4 QScintilla-2.9
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 217, in _reloadGraph
  File "tortoisehg\hgqt\repomodel.pyo", line 245, in _rebuildGraph
  File "tortoisehg\hgqt\repomodel.pyo", line 361, in _ensureBuilt
  File "tortoisehg\hgqt\graph.pyo", line 950, in build_nodes
  File "tortoisehg\hgqt\graph.pyo", line 632, in _iter_graphnodes
  File "tortoisehg\hgqt\graph.pyo", line 824, in fromchangectx
  File "mercurial\context.pyo", line 1348, in phase
  File "mercurial\context.pyo", line 583, in phase
  File "mercurial\localrepo.pyo", line 72, in __get__
  File "mercurial\scmutil.pyo", line 1348, in __get__
  File "mercurial\localrepo.pyo", line 489, in _phasecache
  File "mercurial\phases.pyo", line 167, in __init__
  File "mercurial\phases.pyo", line 147, in _readroots
  File "mercurial\store.pyo", line 490, in __call__
  File "mercurial\scmutil.pyo", line 690, in __call__
  File "mercurial\windows.pyo", line 131, in posixfile
IOError: [Errno 13] D:\cwso-master\.hg/store\phaseroots: Access is denied
Traceback (most recent call last):
  File "tortoisehg\hgqt\repowidget.pyo", line 870, in repositoryChanged
  File "tortoisehg\hgqt\repowidget.pyo", line 859, in rebuildGraph
  File "tortoisehg\hgqt\repofilter.pyo", line 481, in refresh
  File "tortoisehg\hgqt\repofilter.pyo", line 423, in _updateBranchFilter
  File "tortoisehg\util\hglib.pyo", line 120, in namedbranches
  File "mercurial\localrepo.pyo", line 828, in branchmap
  File "mercurial\branchmap.pyo", line 109, in updatecache
  File "mercurial\localrepo.pyo", line 828, in branchmap
  File "mercurial\branchmap.pyo", line 96, in updatecache
  File "mercurial\repoview.pyo", line 319, in changelog
  File "mercurial\repoview.pyo", line 261, in filterrevs
  File "mercurial\repoview.pyo", line 198, in computeunserved
  File "mercurial\phases.pyo", line 481, in hassecret
  File "mercurial\localrepo.pyo", line 72, in __get__
  File "mercurial\scmutil.pyo", line 1348, in __get__
  File "mercurial\localrepo.pyo", line 489, in _phasecache
  File "mercurial\phases.pyo", line 167, in __init__
  File "mercurial\phases.pyo", line 147, in _readroots
  File "mercurial\store.pyo", line 490, in __call__
  File "mercurial\scmutil.pyo", line 690, in __call__
  File "mercurial\windows.pyo", line 131, in posixfile
IOError: [Errno 13] D:\cwso-master\.hg/store\phaseroots: Access is denied
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range
Traceback (most recent call last):
  File "tortoisehg\hgqt\repomodel.pyo", line 455, in data
  File "tortoisehg\hgqt\graph.pyo", line 915, in __getitem__
IndexError: list index out of range