Issue #1085 resolved

Exception when using Git subrepositories

Dominik Ruf
created an issue

When I configure a git subrepository http://mercurial.selenic.com/wiki/Subrepository I get the following exception when opening the tortoisehg workbench.

{{{

!python

Mercurial version (1.9). TortoiseHg version (2.1.2+33-5e27e720aebc) Command: workbench CWD: /home/scream/src-projects/plone/src/collective.ajaxkeywords Encoding: UTF-8 Extensions loaded: hggit, hgsubversion, rebase, purge, mq, collapse Python version: 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] Qt-4.7.2 PyQt-4.8.3 Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/tortoisehg/hgqt/run.py", line 497, in __call__ dlg = dlgfunc(ui, *args, opts) File "/usr/lib/pymodules/python2.7/tortoisehg/hgqt/workbench.py", line 904, in run w = Workbench() File "/usr/lib/pymodules/python2.7/tortoisehg/hgqt/workbench.py", line 69, in init self.restoreSettings() File "/usr/lib/pymodules/python2.7/tortoisehg/hgqt/workbench.py", line 834, in restoreSettings self.reporegistry.reloadModel() File "/usr/lib/pymodules/python2.7/tortoisehg/hgqt/reporegistry.py", line 347, in reloadModel self.showShortPaths)) File "/usr/lib/pymodules/python2.7/tortoisehg/hgqt/repotreemodel.py", line 99, in init self.loadSubrepos(root) File "/usr/lib/pymodules/python2.7/tortoisehg/hgqt/repotreemodel.py", line 318, in loadSubrepos c.appendSubrepos() File "/usr/lib/pymodules/python2.7/tortoisehg/hgqt/repotreeitem.py", line 266, in appendSubrepos wctx = repo['.'] TypeError: 'gitrepo' object is not subscriptable

}}}

Comments (3)

  1. Log in to comment