Create new sub repository error trapping

Issue #1563 resolved
Anonymous created an issue

Was in the add new sub repository folder selection dialog. Added a new folder (sub folder of repository on FS), recvd "can add repository to itself" message, deleted FS folder, clicked okay. Pretty sure it just didn't fail out gracefully?



Mercurial version (2.0.2). TortoiseHg version (2.2.2) Command: CWD: C:\Documents and Settings\FO1436 Encoding: cp1252 Extensions loaded: Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] Windows version: (5, 2, 3790, 2, 'Service Pack 2') Processor architecture: x86 ** Qt-4.7.4 PyQt-4.8.6 Traceback (most recent call last): File "tortoisehg\hgqt\reporegistry.pyo", line 516, in addSubrepo File "genericpath.pyo", line 41, in isdir TypeError: coercing to Unicode: need string or buffer, NoneType found


Comments (4)

  1. Anonymous

    Experienced same bug in 2.2.1, therefore upgraded to 2.3

    > Bug persists.

    Tried to init the subrepo before adding it -> Adding the subrepo succeeds.

    Adding a "maybe your subrepo hasn't been initialized?" error message may "fix" this bug.


    Nils Stöckmann

  2. Log in to comment