##// END OF EJS Templates
narrow: fix flaky behavior described in issue6150...
narrow: fix flaky behavior described in issue6150 This has been plaguing the CI for a good while, and it doesn't appear to have an easy fix proposed yet. The solution in this change is to always do an unambiguous (but expensive) lookup in case of comparison. This should always be correct, albeit suboptimal. Differential Revision: https://phab.mercurial-scm.org/D10034

File last commit:

r42940:cdf0e952 default
r47280:b994db7c stable
Show More
test-server-view.t
68 lines | 1.9 KiB | text/troff | Tads3Lexer
/ tests / test-server-view.t
Joerg Sonnenberger
server: allow customizing the default repo filter...
r42006 $ hg init test
$ cd test
$ hg debugbuilddag '+2'
$ hg phase --public 0
$ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
$ cat hg.pid >> $DAEMON_PIDS
$ cd ..
$ hg init test2
$ cd test2
$ hg incoming http://foo:xyzzy@localhost:$HGPORT/
comparing with http://foo:***@localhost:$HGPORT/
changeset: 0:1ea73414a91b
user: debugbuilddag
date: Thu Jan 01 00:00:00 1970 +0000
summary: r0
changeset: 1:66f7d451a68b
tag: tip
user: debugbuilddag
date: Thu Jan 01 00:00:01 1970 +0000
summary: r1
$ killdaemons.py
test: minor cleanup to test-server-view.t...
r42275 $ cd ..
$ hg -R test --config server.view=immutable serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
Joerg Sonnenberger
server: allow customizing the default repo filter...
r42006 $ cat hg.pid >> $DAEMON_PIDS
test: minor cleanup to test-server-view.t...
r42275 $ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT/
Joerg Sonnenberger
server: allow customizing the default repo filter...
r42006 comparing with http://foo:***@localhost:$HGPORT/
changeset: 0:1ea73414a91b
tag: tip
user: debugbuilddag
date: Thu Jan 01 00:00:00 1970 +0000
summary: r0
repoview: introduce a `experimental.extra-filter-revs` config...
r42417
Check same result using `experimental.extra-filter-revs`
$ hg -R test --config experimental.extra-filter-revs='not public()' serve -p $HGPORT1 -d --pid-file=hg2.pid -E errors.log
$ cat hg2.pid >> $DAEMON_PIDS
$ hg -R test2 incoming http://foo:xyzzy@localhost:$HGPORT1/
comparing with http://foo:***@localhost:$HGPORT1/
changeset: 0:1ea73414a91b
tag: tip
user: debugbuilddag
date: Thu Jan 01 00:00:00 1970 +0000
summary: r0
$ hg -R test --config experimental.extra-filter-revs='not public()' debugupdatecache
$ ls -1 test/.hg/cache/
branch2-base%89c45d2fa07e
Kyle Lippincott
branchmap: explicitly warm+write all subsets of the branchmap caches...
r42940 branch2-immutable%89c45d2fa07e
repoview: introduce a `experimental.extra-filter-revs` config...
r42417 branch2-served
Kyle Lippincott
branchmap: explicitly warm+write all subsets of the branchmap caches...
r42940 branch2-served%89c45d2fa07e
branch2-served.hidden%89c45d2fa07e
branch2-visible%89c45d2fa07e
branch2-visible-hidden%89c45d2fa07e
updatecaches: also warm hgtagsfnodescache...
r42424 hgtagsfnodes1
repoview: introduce a `experimental.extra-filter-revs` config...
r42417 rbc-names-v1
rbc-revs-v1
tags2
tags2-served%89c45d2fa07e
cleanup
test: minor cleanup to test-server-view.t...
r42275 $ cat errors.log
Joerg Sonnenberger
server: allow customizing the default repo filter...
r42006 $ killdaemons.py