Minor bug: Coding error revealed in Mercurial-0.9-a1cfe679192c.exe

Andrei Errapart andreie at no.spam.ee
Sat Jun 17 02:45:14 CDT 2006


Hi,

Mercurial installed: Mercurial-0.9-a1cfe679192c.exe
Doesn't occur in: Mercurial-0.9.exe

Appended to c:/Mercurial/Mercurial.ini:
[ui]
ssh=c:/myssh/plink -ssh -i "c:/myssh/cvs-private.ppk"
remotecmd=/usr/bin/hg

My repo is at ssh://cvs@194.204.26.104/Tester2

When running with invalid repo name 
ssh://cvs@194.204.26.104/home/cvs/Tester2, the coding error is revealed:
------------------------------------------------------------------
C:\soft2>hg clone ssh://cvs@194.204.26.104/home/cvs/Tester2
remote: abort: repository home/cvs/Tester2 not found!
** unknown exception encountered, details follow
** report bug details to mercurial at selenic.com
** Mercurial Distributed SCM (version unknown)
Traceback (most recent call last):
  File "hg", line 12, in ?
  File "mercurial\commands.pyc", line 3222, in run
  File "mercurial\commands.pyc", line 3389, in dispatch
  File "mercurial\commands.pyc", line 3366, in <lambda>
  File "mercurial\commands.pyc", line 923, in clone
  File "mercurial\hg.pyc", line 26, in repository
  File "mercurial\sshrepo.pyc", line 54, in __init__
NameError: global name 'l1' is not defined
------------------------------------------------------------------

Expected result: no exception occurs.



Hopefully it helps to clean it a little up.


regards,
Andrei Errapart


More information about the Mercurial mailing list