mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
6678f088c8
Summary: Disables 'hg serve' being able to start a web server. This can be worked around temporarily by setting web.allowhgweb=True, but we should remove that workaround soon so we can deleted all the code. Reviewed By: xavierd Differential Revision: D20951800 fbshipit-source-id: e0d5017647a073b5ede3b0bbc4dd745fabeac816
39 lines
720 B
Perl
39 lines
720 B
Perl
#chg-compatible
|
|
|
|
#require serve
|
|
|
|
$ cat <<EOF >> $HGRCPATH
|
|
> [extensions]
|
|
> schemes=
|
|
>
|
|
> [schemes]
|
|
> z = file:\$PWD/
|
|
> EOF
|
|
$ hg init test
|
|
$ cd test
|
|
$ echo a > a
|
|
$ hg ci -Am initial
|
|
adding a
|
|
|
|
check that paths are expanded
|
|
|
|
$ PWD=`pwd` hg incoming z://
|
|
comparing with z://
|
|
searching for changes
|
|
no changes found
|
|
|
|
check that debugexpandscheme outputs the canonical form
|
|
|
|
$ hg debugexpandscheme bb://user/repo
|
|
https://bitbucket.org/user/repo
|
|
|
|
expanding an unknown scheme emits the input
|
|
|
|
$ hg debugexpandscheme foobar://this/that
|
|
foobar://this/that
|
|
|
|
expanding a canonical URL emits the input
|
|
|
|
$ hg debugexpandscheme https://bitbucket.org/user/repo
|
|
https://bitbucket.org/user/repo
|