Workbench cannot handle repositories with [git] subrepositories
Created originally on Bitbucket by Anonymous
I have been using TortoiseHg for quite a while without problems, until I created a subrepository of type [git]. My .hgsub contents:
DockPanel = [git]git://github.com/dockpanelsuite/dockpanelsuite.git
Since then many (usually push/update related) Workbench commands fail (including hg commands typed directly into the Output Log, with error message:
abort: The handle is invalid
When I use the real commandline hg, everything works fine, so I am limited to use TortoiseHg as history browser only. I understand that TortoiseHg does not support git, but the git subproject is read-only, has no changes, and the referenced revision does not change (at least not within an open Workbench session), so this should work (I even can see a nice git icon as a subproject in Repository Registry).
Sometimes I get a crash window with call stack, maybe that will be of some help.
#!python
** Mercurial version (2.4.2+20130203). TortoiseHg version (2.7)
** Command:
** CWD: C:\Code\SunFlow-TALib
** Encoding: cp1252
** Extensions loaded: graphlog, mq, fetch, purge, children, convert, eol, transplant, rebase, hggit
** 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=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.4 PyQt-4.9.6 QScintilla-2.7
Traceback (most recent call last):
File "tortoisehg\hgqt\qtlib.pyo", line 1116, in showEvent
File "tortoisehg\hgqt\qtlib.pyo", line 1128, in get
File "tortoisehg\hgqt\repowidget.pyo", line 393, in createManifestWidget
File "tortoisehg\hgqt\manifestdialog.pyo", line 135, in __init__
File "tortoisehg\hgqt\manifestmodel.pyo", line 182, in index
File "tortoisehg\hgqt\manifestmodel.pyo", line 218, in _parententry
File "tortoisehg\hgqt\manifestmodel.pyo", line 263, in _rootentry
File "tortoisehg\hgqt\manifestmodel.pyo", line 389, in _newrootentry
File "tortoisehg\hgqt\manifestmodel.pyo", line 367, in addrepocontentstotree
File "tortoisehg\hgqt\thgrepo.pyo", line 603, in sub
File "mercurial\context.pyo", line 321, in sub
File "mercurial\subrepo.pyo", line 274, in subrepo
File "mercurial\subrepo.pyo", line 865, in __init__
File "mercurial\subrepo.pyo", line 870, in _ensuregit
File "mercurial\subrepo.pyo", line 910, in _gitnodir
File "subprocess.pyo", line 672, in __init__
File "subprocess.pyo", line 787, in _get_handles
File "subprocess.pyo", line 826, in _make_inheritable
WindowsError: [Error 6] The handle is invalid