[issue1809] Unclear error message on cloning non-existing repo behind HTTP auth

Jeroen Ruigrok van der Werven mercurial-bugs at selenic.com
Mon Aug 24 13:24:04 UTC 2009


New submission from Jeroen Ruigrok van der Werven <asmodai at in-nomine.org>:

Part of this resulted from a pilot error, however, I think Mercurial should
do some additional checking to make troubleshooting easier.

I have a working collections setup behind lighttpd using basic auth.

When I try to clone a non-existing repository I get, as expected, the following:

% hg clone http://user:pass@hg.example.com/hg/project/
abort: HTTP Error 404: Not Found

If you are tired and like me you create the repository directory, a .hg
directory inside this directory (note the absence of hg init on said
directory after creation) you will get something like this:

% hg clone http://user:pass@hg.example.com/hg/project/
destination directory: project
Auth realm: <http://hg.example.com:80> Authenticated users
Password for user: ********
abort: OPTIONS of 'http://hg.example.com/hg/project': 200 OK
(http://hg.example.com)

I guess Hg could check more than just the existence of .hg to see if
something is a valid repository?

----------
messages: 10413
nosy: asmodai
priority: bug
status: unread
title: Unclear error message on cloning non-existing repo behind HTTP auth
topic: hg, hgweb, ui

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



More information about the Mercurial-devel mailing list