[issue2531] Handling of invalid drive letters (windows) is not graceful

mo bugs at mercurial.selenic.com
Wed Dec 1 12:55:48 CST 2010


New submission from mo <mo.cassidy at gmail.com>:

How to reproduce:




C:\>n:
The system cannot find the drive specified.

C:\>hg init n:\test
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
** Mercurial Distributed SCM (version 1.6.3)
** Extensions loaded: fixfrozenexts, convert, mercurial_keyring
Traceback (most recent call last):
  File "hg", line 36, in <module>
  File "mercurial\dispatch.pyo", line 16, in run
  File "mercurial\dispatch.pyo", line 34, in dispatch
  File "mercurial\dispatch.pyo", line 54, in _runcatch
  File "mercurial\dispatch.pyo", line 494, in _dispatch
  File "mercurial\dispatch.pyo", line 355, in runcommand
  File "mercurial\dispatch.pyo", line 545, in _runcommand
  File "mercurial\dispatch.pyo", line 499, in checkargs
  File "mercurial\dispatch.pyo", line 492, in <lambda>
  File "mercurial\util.pyo", line 420, in check
  File "mercurial\commands.pyo", line 2412, in init
  File "mercurial\hg.pyo", line 94, in repository
  File "mercurial\localrepo.pyo", line 1870, in instance
  File "mercurial\localrepo.pyo", line 45, in __init__
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  
  <snip>
  
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 829, in makedirs
  File "mercurial\util.pyo", line 828, in makedirs
  File "ntpath.pyo", line 205, in dirname
  File "ntpath.pyo", line 178, in split
RuntimeError: maximum recursion depth exceeded while calling a Python object

C:\>

----------
messages: 14564
nosy: mcassidy
priority: bug
status: unread
title: Handling of invalid drive letters (windows) is not graceful

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2531>
____________________________________________________


More information about the Mercurial-devel mailing list