Mercurial > hg > mercurial-crew-with-dirclash
annotate contrib/win32/mercurial.ini @ 4865:439e2f2fde42
Fix inconsistency for the stream_out capability in hgweb
During some experiments of mine, the uncompressed cloning could not
be enabled for hgweb.cgi nor hgwebdir.cgi though the server claimed
to be stream_out capable.
The only solution was to enable it using the user's .hgrc file.
This solution is not acceptable when publishing the repos through
an HTTP server because the CGI runs as a www dedicated user whose's
home hgrc file may not be accessible to users publishing their repos
through their userdir.
For such cases we could end up with this typical debug output:
hg --debug clone --uncompressed http://server/hg/project
destination directory: project
sending capabilities command
capabilities: lookup changegroupsubset stream=1
unbundle=HG10GZ,HG10BZ,HG10UN
sending stream_out command
abort: operation forbidden by server
The error lies in the fact the hgweb object defines new accessors
to the repo configuration that trust things by default (untrusted=True)
but the streamclone:stream_out function uses the usual accessors to the
repo.ui object, which do not trust by default (untrusted=False)
Fix this inconsistency, adding a new parameter to the stream_out function.
hgweb then forces a "trust by default" behavior.
author | Edouard Gomez <ed.gomez@free.fr> |
---|---|
date | Sat, 12 May 2007 00:41:30 +0200 |
parents | 2300632a3bc8 |
children | 778bab992732 ea7b982b6c08 |
rev | line source |
---|---|
1298
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
1 ; System-wide Mercurial config file. To override these settings on a |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
2 ; per-user basis, please edit the following file instead, where |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
3 ; USERNAME is your Windows user name: |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
4 ; C:\Documents and Settings\USERNAME\Mercurial.ini |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
5 |
3422
2300632a3bc8
Default editor for Windows installer is now notepad. [Issue 256]
Lee Cantey <lcantey@gmail.com>
parents:
2550
diff
changeset
|
6 [ui] |
2300632a3bc8
Default editor for Windows installer is now notepad. [Issue 256]
Lee Cantey <lcantey@gmail.com>
parents:
2550
diff
changeset
|
7 editor = notepad |
2300632a3bc8
Default editor for Windows installer is now notepad. [Issue 256]
Lee Cantey <lcantey@gmail.com>
parents:
2550
diff
changeset
|
8 |
1298
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
9 ; By default, we try to encode and decode all files that do not |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
10 ; contain ASCII NUL characters. What this means is that we try to set |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
11 ; line endings to Windows style on update, and to Unix style on |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
12 ; commit. This lets us cooperate with Linux and Unix users, so |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
13 ; everybody sees files with their native line endings. |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
14 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
15 [extensions] |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
16 ; The win32text extension is available and installed by default. It |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
17 ; provides built-in Python hooks to perform line ending conversions. |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
18 ; This is normally much faster than running an external program. |
1303
2dc06dd76ff4
Fix path of win32text extension in INI file.
Bryan O'Sullivan <bos@serpentine.com>
parents:
1298
diff
changeset
|
19 hgext.win32text = |
1298
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
20 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
21 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
22 [encode] |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
23 ; Encode files that don't contain NUL characters. |
2550
45235e492cc6
Disable automatic line endings conversion on windows
Raphael Marmier <raphael@marmier.net>
parents:
1303
diff
changeset
|
24 |
45235e492cc6
Disable automatic line endings conversion on windows
Raphael Marmier <raphael@marmier.net>
parents:
1303
diff
changeset
|
25 ; ** = cleverencode: |
1298
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
26 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
27 ; Alternatively, you can explicitly specify each file extension that |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
28 ; you want encoded (any you omit will be left untouched), like this: |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
29 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
30 ; *.txt = dumbencode: |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
31 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
32 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
33 [decode] |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
34 ; Decode files that don't contain NUL characters. |
2550
45235e492cc6
Disable automatic line endings conversion on windows
Raphael Marmier <raphael@marmier.net>
parents:
1303
diff
changeset
|
35 |
45235e492cc6
Disable automatic line endings conversion on windows
Raphael Marmier <raphael@marmier.net>
parents:
1303
diff
changeset
|
36 ; ** = cleverdecode: |
1298
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
37 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
38 ; Alternatively, you can explicitly specify each file extension that |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
39 ; you want decoded (any you omit will be left untouched), like this: |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
40 |
d843eaadee79
Add INI file for Windows.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
41 ; **.txt = dumbdecode: |