From b5a68ead0a7eb4a2fbbeb024d95fc2e854970e1d Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Wed, 1 Dec 2010 10:21:40 +0100 Subject: [PATCH 1/3] hgrc.5: describe what the [auth] section is for --- doc/hgrc.5.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/hgrc.5.txt b/doc/hgrc.5.txt index ef2ce149f3..dcdf146252 100644 --- a/doc/hgrc.5.txt +++ b/doc/hgrc.5.txt @@ -203,8 +203,13 @@ changesets. You can define subsequent aliases using earlier ones:: ``auth`` """""""" -Authentication credentials for HTTP authentication. Each line has -the following format:: + +Authentication credentials for HTTP authentication. This section +allows you to store usernames and passwords for use when logging +*into* HTTP servers. See the web_ configuration section if you want to +configure *who* can login to your HTTP server. + +Each line has the following format:: . = From d16a27529b7d51e2592bd0607cb3d6e5639b890f Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Wed, 1 Dec 2010 10:52:31 +0100 Subject: [PATCH 2/3] hgrc.5: expand introduction for [web] section --- doc/hgrc.5.txt | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/doc/hgrc.5.txt b/doc/hgrc.5.txt index dcdf146252..62fe50e3b0 100644 --- a/doc/hgrc.5.txt +++ b/doc/hgrc.5.txt @@ -925,7 +925,29 @@ User interface controls. ``web`` """"""" -Web interface configuration. + +Web interface configuration. The settings in this section apply to +both the builtin webserver (started by :hg:`serve`) and the script you +run through a webserver (``hgweb.cgi`` and the derivatives for FastCGI +and WSGI). + +The Mercurial webserver does no authentication (it does not prompt for +usernames and passwords to validate *who* users are), but it does do +authorization (it grants or denies access for *authenticated users* +based on settings in this section). You must either configure your +webserver to do authentication for you, or disable the authorization +checks. + +For a quick setup in a trusted environment, e.g., a private LAN, where +you want it to accept pushes from anybody, you can use the following +command line:: + + $ hg --config web.allow_push=* --config web.push_ssl=False serve + +Note that this will allow anybody to push anything to the server and +that this should not be used for public servers. + +The full set of options is: ``accesslog`` Where to output the access log. Default is stdout. From 54665801ada81dcc99921dab5396fc8f404a164a Mon Sep 17 00:00:00 2001 From: Adrian Buehlmann Date: Wed, 1 Dec 2010 04:21:47 +0100 Subject: [PATCH 3/3] test-clone.t: add basic cases for destination '' The case $ hg clone a '' already aborted before c1e68cd8cfa8, whereas $ hg clone --pull a '' tripped the fixed issue2528. Both basic cases are expected to fail with an abort. --- tests/test-clone.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/test-clone.t b/tests/test-clone.t index 881285e087..fa4bd631ec 100644 --- a/tests/test-clone.t +++ b/tests/test-clone.t @@ -41,6 +41,12 @@ Default operation: checking files 2 files, 11 changesets, 11 total revisions +Invalid dest '' must abort: + + $ hg clone . '' + abort: No such file or directory + [255] + No update, with debug option: $ hg --debug clone -U . ../c @@ -99,6 +105,12 @@ Use --pull: checking files 2 files, 11 changesets, 11 total revisions +Invalid dest '' with --pull must abort (issue2528): + + $ hg clone --pull a '' + abort: No such file or directory + [255] + Clone to '.': $ mkdir h