| 1 |
#require serve |
| 2 |
|
| 3 |
$ cat <<EOF >> $HGRCPATH |
| 4 |
> [extensions] |
| 5 |
> schemes= |
| 6 |
> |
| 7 |
> [schemes] |
| 8 |
> lo = http://localhost:$HGPORT/ |
| 9 |
> parts = http://{1}:$HGPORT/ |
| 10 |
> pwd = file:\$PWD/ |
| 11 |
> EOF |
| 12 |
$ hg init test |
| 13 |
$ cd test |
| 14 |
$ echo a > a |
| 15 |
$ hg ci -Am initial |
| 16 |
adding a |
| 17 |
|
| 18 |
invalid scheme |
| 19 |
|
| 20 |
$ hg log -R pwd:pwd |
| 21 |
abort: no '://' in scheme url 'pwd:pwd' |
| 22 |
[255] |
| 23 |
|
| 24 |
http scheme |
| 25 |
|
| 26 |
$ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
| 27 |
$ cat hg.pid >> $DAEMON_PIDS |
| 28 |
$ hg incoming lo:// |
| 29 |
comparing with lo:// |
| 30 |
searching for changes |
| 31 |
no changes found |
| 32 |
[1] |
| 33 |
|
| 34 |
check that {1} syntax works |
| 35 |
|
| 36 |
$ hg incoming --debug parts://localhost |
| 37 |
using http://localhost:$HGPORT/ |
| 38 |
sending capabilities command |
| 39 |
comparing with parts://localhost/ |
| 40 |
query 1; heads |
| 41 |
sending batch command |
| 42 |
searching for changes |
| 43 |
all remote heads known locally |
| 44 |
no changes found |
| 45 |
(sent 2 HTTP requests and * bytes; received * bytes in responses) (glob) |
| 46 |
[1] |
| 47 |
|
| 48 |
check that paths are expanded |
| 49 |
|
| 50 |
$ PWD=`pwd` hg incoming pwd:// |
| 51 |
comparing with pwd:// |
| 52 |
searching for changes |
| 53 |
no changes found |
| 54 |
[1] |
| 55 |
|
| 56 |
check that debugexpandscheme outputs the canonical form |
| 57 |
|
| 58 |
$ hg debugexpandscheme bb://user/repo |
| 59 |
https://bitbucket.org/user/repo |
| 60 |
|
| 61 |
expanding an unknown scheme emits the input |
| 62 |
|
| 63 |
$ hg debugexpandscheme foobar://this/that |
| 64 |
foobar://this/that |
| 65 |
|
| 66 |
expanding a canonical URL emits the input |
| 67 |
|
| 68 |
$ hg debugexpandscheme https://bitbucket.org/user/repo |
| 69 |
https://bitbucket.org/user/repo |
| 70 |
|
| 71 |
errors |
| 72 |
|
| 73 |
$ cat errors.log |
| 74 |
|
| 75 |
$ cd .. |