Mercurial > hg
changeset 13059:f553024f1832
merge with stable
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 01 Dec 2010 11:04:50 +0100 |
parents | e2b8c7a6ff4d (current diff) 5986f44ea63c (diff) |
children | 8c6b7a5f38c4 |
files | |
diffstat | 2 files changed, 42 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/hgrc.5.txt Wed Dec 01 11:02:12 2010 +0900 +++ b/doc/hgrc.5.txt Wed Dec 01 11:04:50 2010 +0100 @@ -203,8 +203,13 @@ ``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:: <name>.<argument> = <value> @@ -920,7 +925,29 @@ ``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.
--- a/tests/test-clone.t Wed Dec 01 11:02:12 2010 +0900 +++ b/tests/test-clone.t Wed Dec 01 11:04:50 2010 +0100 @@ -41,6 +41,12 @@ 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 @@ 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