2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2014-08-06 20:43:59 +04:00
|
|
|
#require serve
|
2010-09-26 22:44:49 +04:00
|
|
|
|
|
|
|
$ cat <<EOF >> $HGRCPATH
|
|
|
|
> [extensions]
|
|
|
|
> schemes=
|
|
|
|
>
|
|
|
|
> [schemes]
|
|
|
|
> 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
|
|
|
|
2010-09-26 22:44:49 +04:00
|
|
|
check that paths are expanded
|
|
|
|
|
|
|
|
$ PWD=`pwd` hg incoming z://
|
|
|
|
comparing with z://
|
|
|
|
searching for changes
|
|
|
|
no changes found
|
|
|
|
|
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
|