##// 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 init repo
3 init repo
2
4
3 $ hg init foo
5 $ chg init foo
4 $ cd foo
6 $ cd foo
5
7
6 ill-formed config
8 ill-formed config
7
9
8 $ hg status
10 $ chg status
9 $ echo '=brokenconfig' >> $HGRCPATH
11 $ echo '=brokenconfig' >> $HGRCPATH
10 $ hg status
12 $ chg status
11 hg: parse error at * (glob)
13 hg: parse error at * (glob)
12 [255]
14 [255]
13
15
14 alias having an environment variable and set to use pager
16 alias having an environment variable and set to use pager
15
17
16 $ rm $HGRCPATH
18 $ rm $HGRCPATH
17 $ cat >> $HGRCPATH <<'EOF'
19 $ cat >> $HGRCPATH <<'EOF'
18 > [ui]
20 > [ui]
19 > formatted = yes
21 > formatted = yes
20 > [extensions]
22 > [extensions]
21 > pager =
23 > pager =
22 > [pager]
24 > [pager]
23 > pager = sed -e 's/^/P/'
25 > pager = sed -e 's/^/P/'
24 > attend = printa
26 > attend = printa
25 > [alias]
27 > [alias]
26 > printa = log -T "$A\n" -r 0
28 > printa = log -T "$A\n" -r 0
27 > EOF
29 > EOF
28
30
29 $ A=1 hg printa
31 $ A=1 chg printa
30 P1
32 P1
31 $ A=2 hg printa
33 $ A=2 chg printa
32 P2
34 P2
General Comments 0
You need to be logged in to leave comments. Login now