##// END OF EJS Templates
test-chg: run only with chg...
Yuya Nishihara -
r29274:148a9a53 default
parent child Browse files
Show More
@@ -1,32 +1,34 b''
1 #require chg
2
1 3 init repo
2 4
3 $ hg init foo
5 $ chg init foo
4 6 $ cd foo
5 7
6 8 ill-formed config
7 9
8 $ hg status
10 $ chg status
9 11 $ echo '=brokenconfig' >> $HGRCPATH
10 $ hg status
12 $ chg status
11 13 hg: parse error at * (glob)
12 14 [255]
13 15
14 16 alias having an environment variable and set to use pager
15 17
16 18 $ rm $HGRCPATH
17 19 $ cat >> $HGRCPATH <<'EOF'
18 20 > [ui]
19 21 > formatted = yes
20 22 > [extensions]
21 23 > pager =
22 24 > [pager]
23 25 > pager = sed -e 's/^/P/'
24 26 > attend = printa
25 27 > [alias]
26 28 > printa = log -T "$A\n" -r 0
27 29 > EOF
28 30
29 $ A=1 hg printa
31 $ A=1 chg printa
30 32 P1
31 $ A=2 hg printa
33 $ A=2 chg printa
32 34 P2
General Comments 0
You need to be logged in to leave comments. Login now