##// END OF EJS Templates
test-chg: run only with chg...
test-chg: run only with chg It doesn't make sense to run test-chg.t without chg, so ignore it with vanilla hg, and specify chg executable explicitly. test-chg.t can host chg-specific tests.

File last commit:

r29274:148a9a53 default
r29274:148a9a53 default
Show More
test-chg.t
34 lines | 504 B | text/troff | Tads3Lexer
#require chg
init repo
$ chg init foo
$ cd foo
ill-formed config
$ chg status
$ echo '=brokenconfig' >> $HGRCPATH
$ chg status
hg: parse error at * (glob)
[255]
alias having an environment variable and set to use pager
$ rm $HGRCPATH
$ cat >> $HGRCPATH <<'EOF'
> [ui]
> formatted = yes
> [extensions]
> pager =
> [pager]
> pager = sed -e 's/^/P/'
> attend = printa
> [alias]
> printa = log -T "$A\n" -r 0
> EOF
$ A=1 chg printa
P1
$ A=2 chg printa
P2