##// END OF EJS Templates
hgweb: support constructing URLs from an alternate base URL...
hgweb: support constructing URLs from an alternate base URL The web.baseurl config option allows server operators to define a custom URL for hosted content. The way it works today is that hgwebdir parses this config option into URL components then updates the appropriate WSGI environment variables so the request "lies" about its details. For example, SERVER_NAME is updated to reflect the alternate base URL's hostname. The WSGI environment should not be modified because WSGI applications may want to know the original request details (for debugging, etc). This commit teaches our request parser about the existence of an alternate base URL. If defined, the advertised URL and other self-reflected paths will take the alternate base URL into account. The hgweb WSGI application didn't use web.baseurl. But hgwebdir did. We update hgwebdir to alter the environment parsing accordingly. The old code around environment manipulation has been removed. With this change, parserequestfromenv() has grown to a bit unwieldy. Now that practically everyone is using it, it is obvious that there is some unused features that can be trimmed. So look for this in follow-up commits. Differential Revision: https://phab.mercurial-scm.org/D2822

File last commit:

r34662:eb586ed5 default
r36916:219b2335 default
Show More
test-glog-topological.t
116 lines | 1.4 KiB | text/troff | Tads3Lexer
/ tests / test-glog-topological.t
Pierre-Yves David
graphlog: add a way to test the 'groupbranchiter' function...
r23565 This test file aims at test topological iteration and the various configuration it can has.
$ cat >> $HGRCPATH << EOF
> [ui]
> logtemplate={rev}\n
> EOF
On this simple example, all topological branch are displayed in turn until we
can finally display 0. this implies skipping from 8 to 3 and coming back to 7
later.
$ hg init test01
$ cd test01
$ hg unbundle $TESTDIR/bundles/remote.hg
adding changesets
adding manifests
adding file changes
added 9 changesets with 7 changes to 4 files (+1 heads)
Denis Laxalde
transaction-summary: show the range of new revisions upon pull/unbundle (BC)...
r34662 new changesets bfaf4b5cbf01:916f1afdef90
Pierre-Yves David
graphlog: add a way to test the 'groupbranchiter' function...
r23565 (run 'hg heads' to see heads, 'hg merge' to merge)
$ hg log -G
o 8
|
| o 7
| |
| o 6
| |
| o 5
| |
| o 4
| |
o | 3
| |
o | 2
| |
o | 1
|/
o 0
Pierre-Yves David
groupbranchiter: support for non-contiguous revsets...
r23567
(display all nodes)
Martijn Pieters
revset: add new topographical sort...
r29348 $ hg log -G -r 'sort(all(), topo)'
Pierre-Yves David
graphlog: add a way to test the 'groupbranchiter' function...
r23565 o 8
|
o 3
|
o 2
|
o 1
|
| o 7
| |
| o 6
| |
| o 5
| |
| o 4
|/
o 0
Pierre-Yves David
groupbranchiter: support for non-contiguous revsets...
r23567
Yuya Nishihara
graphlog: preserve topo sort even if additional filter options specified...
r30003 (display nodes filtered by log options)
$ hg log -G -r 'sort(all(), topo)' -k '.3'
o 8
|
o 3
|
~
o 7
|
o 6
|
~
Pierre-Yves David
groupbranchiter: support for non-contiguous revsets...
r23567 (revset skipping nodes)
Martijn Pieters
revset: add new topographical sort...
r29348 $ hg log -G --rev 'sort(not (2+6), topo)'
Pierre-Yves David
groupbranchiter: support for non-contiguous revsets...
r23567 o 8
|
o 3
Martijn Pieters
graphmod: set default edge styles for ascii graphs (BC)...
r28627 :
Pierre-Yves David
groupbranchiter: support for non-contiguous revsets...
r23567 o 1
|
| o 7
Martijn Pieters
graphmod: set default edge styles for ascii graphs (BC)...
r28627 | :
Pierre-Yves David
groupbranchiter: support for non-contiguous revsets...
r23567 | o 5
| |
| o 4
|/
o 0
Pierre-Yves David
groupbranchiter: allow callers to select the first branch...
r23568 (begin) from the other branch
Martijn Pieters
revset: add new topographical sort...
r29348 $ hg log -G -r 'sort(all(), topo, topo.firstbranch=5)'
Pierre-Yves David
groupbranchiter: allow callers to select the first branch...
r23568 o 7
|
o 6
|
o 5
|
o 4
|
| o 8
| |
| o 3
| |
| o 2
| |
| o 1
|/
o 0