Crash on startup if repo registry is empty
Created originally on Bitbucket by r3bel (Vladimir Sinenko)
By accidentally removing the 'default' group in the repo registry and all it's contents, I started getting crashes on thg startup:
{{{
#!python
** Mercurial version (1.9.1). TortoiseHg version (2.1.2)
** Command:
** CWD: X:
** Encoding: cp1251
** Extensions loaded: mercurial_keyring, mq
** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
** Windows version: (6, 1, 7601, 2, 'Service Pack 1')
** Processor architecture: x86
** Qt-4.7.1 PyQt-4.8.3
Traceback (most recent call last):
File "tortoisehg\hgqt\run.pyo", line 504, in call
File "mercurial\demandimport.pyo", line 85, in _demandimport
ImportError: No module named thginithook
}}}
thg-reporegistry.xml contains this: {{{ }}}
The problem can be fixed by adding 'allgroup' node to the xml: {{{ }}}