sapling/eden/scm/tests/test-schemes.t

39 lines
720 B
Perl
Raw Normal View History

#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
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