AttributeError: 'NoneType' object has no attribute 'group'
Created originally on Bitbucket by Anonymous
{{{ #!python ** Please report this bug to http://bitbucket.org/tortoisehg/thg/issues ** Mercurial version (1.8). TortoiseHg version (2.0) ** Command: --nofork workbench ** CWD: C:\Users\michael\Documents\Visual Studio 2010\Projects\Ab Cd Efghij ** Extensions loaded: fixfrozenexts ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)] ** Windows version: (6, 1, 7601, 2, 'Service Pack 1') ** Processor architecture: x64 ** Qt-4.7.1 PyQt-4.8.2 Traceback (most recent call last): File "tortoisehg\hgqt\sync.pyo", line 520, in saveclicked File "tortoisehg\hgqt\sync.pyo", line 973, in init File "tortoisehg\hgqt\sync.pyo", line 37, in parseurl AttributeError: 'NoneType' object has no attribute 'group'
}}}
Was trying to add a Remote Repository to a very recently created project using ssh: {{{ hostname: ssh://hg3.xp-dev.com/ port: (blank) path: ABCdefg (not the actual name, but cased the same }}}
The line specifying remote repository had: Remote Repository: {{{ssh://ssh://hg3.xp-dev.com//ABCdefg}}} Changing the hostname entry to - hg3.xp-dev.com - resolved the issue. It's more a user error than anything else, but either trimming those characters or providing a more intuitive error message would be helpful. Thanks for the excellent work!