2014-08-06 20:43:59 +04:00
|
|
|
#require serve
|
2010-09-26 22:44:49 +04:00
|
|
|
|
|
|
|
$ cat <<EOF >> $HGRCPATH
|
|
|
|
> [extensions]
|
|
|
|
> schemes=
|
|
|
|
>
|
|
|
|
> [schemes]
|
|
|
|
> l = http://localhost:$HGPORT/
|
|
|
|
> parts = http://{1}:$HGPORT/
|
|
|
|
> z = file:\$PWD/
|
|
|
|
> EOF
|
|
|
|
$ hg init test
|
|
|
|
$ cd test
|
|
|
|
$ echo a > a
|
|
|
|
$ hg ci -Am initial
|
|
|
|
adding a
|
2013-04-11 16:41:22 +04:00
|
|
|
|
|
|
|
invalid scheme
|
|
|
|
|
|
|
|
$ hg log -R z:z
|
|
|
|
abort: no '://' in scheme url 'z:z'
|
|
|
|
[255]
|
|
|
|
|
|
|
|
http scheme
|
|
|
|
|
2010-09-26 22:44:49 +04:00
|
|
|
$ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
|
|
|
|
$ cat hg.pid >> $DAEMON_PIDS
|
|
|
|
$ hg incoming l://
|
|
|
|
comparing with l://
|
|
|
|
searching for changes
|
|
|
|
no changes found
|
|
|
|
[1]
|
|
|
|
|
|
|
|
check that {1} syntax works
|
|
|
|
|
|
|
|
$ hg incoming --debug parts://localhost
|
2010-10-09 07:36:11 +04:00
|
|
|
using http://localhost:$HGPORT/
|
2011-03-12 20:29:02 +03:00
|
|
|
sending capabilities command
|
2011-03-31 07:00:23 +04:00
|
|
|
comparing with parts://localhost/
|
2011-05-02 21:21:30 +04:00
|
|
|
query 1; heads
|
2011-06-15 00:58:00 +04:00
|
|
|
sending batch command
|
2010-09-26 22:44:49 +04:00
|
|
|
searching for changes
|
2011-05-02 21:21:30 +04:00
|
|
|
all remote heads known locally
|
2010-09-26 22:44:49 +04:00
|
|
|
no changes found
|
|
|
|
[1]
|
|
|
|
|
|
|
|
check that paths are expanded
|
|
|
|
|
|
|
|
$ PWD=`pwd` hg incoming z://
|
|
|
|
comparing with z://
|
|
|
|
searching for changes
|
|
|
|
no changes found
|
|
|
|
[1]
|
|
|
|
|
2016-01-29 22:53:44 +03:00
|
|
|
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
|
|
|
|
|
2010-09-26 22:44:49 +04:00
|
|
|
errors
|
|
|
|
|
|
|
|
$ cat errors.log
|
2012-06-11 03:40:51 +04:00
|
|
|
|
|
|
|
$ cd ..
|