comparison tests/test-hgrc.t @ 12372:5163e3c8aa52

tests: improve regexes in unified tests
author Brodie Rao <brodie@bitheap.org>
date Wed, 22 Sep 2010 16:05:58 -0500
parents c01dc9087d9a
children 02990e22150b
comparison
equal deleted inserted replaced
12371:48a4acd1ccf1 12372:5163e3c8aa52
16 [paths] 16 [paths]
17 default = .*/foo%bar 17 default = .*/foo%bar
18 $ hg paths 18 $ hg paths
19 default = .*/foo%bar 19 default = .*/foo%bar
20 $ hg showconfig 20 $ hg showconfig
21 bundle.mainreporoot=.*/foobar 21 bundle\.mainreporoot=.*/foobar
22 paths.default=.*/foo%bar 22 paths\.default=.*/foo%bar
23 $ cd .. 23 $ cd ..
24 24
25 issue1829: wrong indentation 25 issue1829: wrong indentation
26 26
27 $ echo '[foo]' > $HGRCPATH 27 $ echo '[foo]' > $HGRCPATH
38 38
39 $ FAKEPATH=/path/to/nowhere 39 $ FAKEPATH=/path/to/nowhere
40 $ export FAKEPATH 40 $ export FAKEPATH
41 $ echo '%include $FAKEPATH/no-such-file' > $HGRCPATH 41 $ echo '%include $FAKEPATH/no-such-file' > $HGRCPATH
42 $ hg version 42 $ hg version
43 hg: parse error at .*/.hgrc:1: cannot include /path/to/nowhere/no-such-file \(No such file or directory\) 43 hg: parse error at .*/\.hgrc:1: cannot include /path/to/nowhere/no-such-file \(No such file or directory\)
44 [255] 44 [255]
45 $ unset FAKEPATH 45 $ unset FAKEPATH
46 46
47 username expansion 47 username expansion
48 48
88 $ echo "log=log -g" >> $HGRCPATH 88 $ echo "log=log -g" >> $HGRCPATH
89 89
90 customized hgrc 90 customized hgrc
91 91
92 $ hg showconfig 92 $ hg showconfig
93 read config from: .*/.hgrc 93 read config from: .*/\.hgrc
94 .*/.hgrc:13: alias.log=log -g 94 .*/\.hgrc:13: alias\.log=log -g
95 .*/.hgrc:11: defaults.identify=-n 95 .*/\.hgrc:11: defaults\.identify=-n
96 .*/.hgrc:2: ui.debug=true 96 .*/\.hgrc:2: ui\.debug=true
97 .*/.hgrc:3: ui.fallbackencoding=ASCII 97 .*/\.hgrc:3: ui\.fallbackencoding=ASCII
98 .*/.hgrc:4: ui.quiet=true 98 .*/\.hgrc:4: ui\.quiet=true
99 .*/.hgrc:5: ui.slash=true 99 .*/\.hgrc:5: ui\.slash=true
100 .*/.hgrc:6: ui.traceback=true 100 .*/\.hgrc:6: ui\.traceback=true
101 .*/.hgrc:7: ui.verbose=true 101 .*/\.hgrc:7: ui\.verbose=true
102 .*/.hgrc:8: ui.style=~/.hgstyle 102 .*/\.hgrc:8: ui\.style=~/.hgstyle
103 .*/.hgrc:9: ui.logtemplate={node} 103 .*/\.hgrc:9: ui\.logtemplate=\{node\}
104 104
105 plain hgrc 105 plain hgrc
106 106
107 $ HGPLAIN=; export HGPLAIN 107 $ HGPLAIN=; export HGPLAIN
108 $ hg showconfig --config ui.traceback=True --debug 108 $ hg showconfig --config ui.traceback=True --debug
109 read config from: .*/.hgrc 109 read config from: .*/\.hgrc
110 none: ui.traceback=True 110 none: ui.traceback=True
111 none: ui.verbose=False 111 none: ui.verbose=False
112 none: ui.debug=True 112 none: ui.debug=True
113 none: ui.quiet=False 113 none: ui.quiet=False