Mercurial > hg
annotate tests/test-hgrc.t @ 19019:53060cc1b601
histedit-test: generalise --commands "-" usage
This is simpler than temporary file version. There some minor test
changes since commit messages are no longer modifed. There is still
some tests using --commands with a real file.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Tue, 16 Apr 2013 21:57:25 -0500 |
parents | 73d20de5f30b |
children | 7228cc98ca7d |
rev | line source |
---|---|
17015
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
1 hide outer repo |
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
2 $ hg init |
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
3 |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
4 Use hgrc within $TESTTMP |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
5 |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
6 $ HGRCPATH=`pwd`/hgrc |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
7 $ export HGRCPATH |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
8 |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
9 Use an alternate var for scribbling on hgrc to keep check-code from |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
10 complaining about the important settings we may be overwriting: |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
11 |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
12 $ HGRC=`pwd`/hgrc |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
13 $ export HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
14 |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
15 Basic syntax error |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
16 |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
17 $ echo "invalid" > $HGRC |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
18 $ hg version |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
19 hg: parse error at $TESTTMP/hgrc:1: invalid |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
20 [255] |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
21 $ echo "" > $HGRC |
1473
7d66ce9895fa
make readconfig take a filename instead of a file pointer as argument
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
22 |
12399
4fee1fd3de9a
tests: added a short description to issue numbers
Martin Geisler <mg@aragost.com>
parents:
12376
diff
changeset
|
23 Issue1199: Can't use '%' in hgrc (eg url encoded username) |
7044
e51c0f41f271
Escape '%' when writing to hgrc (issue1199)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
4659
diff
changeset
|
24 |
12014 | 25 $ hg init "foo%bar" |
26 $ hg clone "foo%bar" foobar | |
27 updating to branch default | |
28 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
29 $ cd foobar | |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
30 $ cat .hg/hgrc |
12014 | 31 [paths] |
15447
9910f60a37ee
tests: make (glob) on windows accept \ instead of /
Mads Kiilerich <mads@kiilerich.com>
parents:
15372
diff
changeset
|
32 default = $TESTTMP/foo%bar (glob) |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
33 $ hg paths |
15447
9910f60a37ee
tests: make (glob) on windows accept \ instead of /
Mads Kiilerich <mads@kiilerich.com>
parents:
15372
diff
changeset
|
34 default = $TESTTMP/foo%bar (glob) |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
35 $ hg showconfig |
15447
9910f60a37ee
tests: make (glob) on windows accept \ instead of /
Mads Kiilerich <mads@kiilerich.com>
parents:
15372
diff
changeset
|
36 bundle.mainreporoot=$TESTTMP/foobar (glob) |
9910f60a37ee
tests: make (glob) on windows accept \ instead of /
Mads Kiilerich <mads@kiilerich.com>
parents:
15372
diff
changeset
|
37 paths.default=$TESTTMP/foo%bar (glob) |
12014 | 38 $ cd .. |
39 | |
40 issue1829: wrong indentation | |
9470
ba75830d17a9
dispatch: catch ConfigError while constructing ui
Martin Geisler <mg@lazybytes.net>
parents:
7044
diff
changeset
|
41 |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
42 $ echo '[foo]' > $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
43 $ echo ' x = y' >> $HGRC |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
44 $ hg version |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
45 hg: parse error at $TESTTMP/hgrc:2: x = y |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
46 [255] |
10042
7cdd2a7db2c2
config: raise ConfigError on non-existing include files
Martin Geisler <mg@lazybytes.net>
parents:
9470
diff
changeset
|
47 |
12014 | 48 $ python -c "print '[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n'" \ |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
49 > > $HGRC |
12014 | 50 $ hg showconfig foo |
51 foo.bar=a\nb\nc\nde\nfg | |
52 foo.baz=bif cb | |
10295
44c923eeb81d
config: handle short continuations (issue1999)
Matt Mackall <mpm@selenic.com>
parents:
10042
diff
changeset
|
53 |
12014 | 54 $ FAKEPATH=/path/to/nowhere |
55 $ export FAKEPATH | |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
56 $ echo '%include $FAKEPATH/no-such-file' > $HGRC |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
57 $ hg version |
14491
a086b91ce7fb
tests: glob version number in test-hgrc
Matt Mackall <mpm@selenic.com>
parents:
14489
diff
changeset
|
58 Mercurial Distributed SCM (version *) (glob) |
14489
3a27faf9a999
tests: update for handling of missing hgrc includes
Matt Mackall <mpm@selenic.com>
parents:
14372
diff
changeset
|
59 (see http://mercurial.selenic.com for more information) |
3a27faf9a999
tests: update for handling of missing hgrc includes
Matt Mackall <mpm@selenic.com>
parents:
14372
diff
changeset
|
60 |
15834
65f7e986a0d0
commands: bump copyright year
Martin Geisler <mg@aragost.com>
parents:
15447
diff
changeset
|
61 Copyright (C) 2005-2012 Matt Mackall and others |
14489
3a27faf9a999
tests: update for handling of missing hgrc includes
Matt Mackall <mpm@selenic.com>
parents:
14372
diff
changeset
|
62 This is free software; see the source for copying conditions. There is NO |
3a27faf9a999
tests: update for handling of missing hgrc includes
Matt Mackall <mpm@selenic.com>
parents:
14372
diff
changeset
|
63 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
12014 | 64 $ unset FAKEPATH |
10455
40dfd46d098f
ui: add HGPLAIN environment variable for easier scripting
Brodie Rao <me+hg@dackz.net>
parents:
10296
diff
changeset
|
65 |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
66 make sure global options given on the cmdline take precedence |
14748
1b8c70c9f47c
dispatch: make sure unspecified global ui options don't override old values
Idan Kamara <idankk86@gmail.com>
parents:
14491
diff
changeset
|
67 |
1b8c70c9f47c
dispatch: make sure unspecified global ui options don't override old values
Idan Kamara <idankk86@gmail.com>
parents:
14491
diff
changeset
|
68 $ hg showconfig --config ui.verbose=True --quiet |
17015
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
69 bundle.mainreporoot=$TESTTMP |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
70 ui.verbose=False |
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
71 ui.debug=False |
14748
1b8c70c9f47c
dispatch: make sure unspecified global ui options don't override old values
Idan Kamara <idankk86@gmail.com>
parents:
14491
diff
changeset
|
72 ui.quiet=True |
1b8c70c9f47c
dispatch: make sure unspecified global ui options don't override old values
Idan Kamara <idankk86@gmail.com>
parents:
14491
diff
changeset
|
73 |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
74 $ touch foobar/untracked |
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
75 $ cat >> foobar/.hg/hgrc <<EOF |
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
76 > [ui] |
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
77 > verbose=True |
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
78 > EOF |
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
79 $ hg -R foobar st -q |
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
80 |
12014 | 81 username expansion |
82 | |
83 $ olduser=$HGUSER | |
84 $ unset HGUSER | |
85 | |
86 $ FAKEUSER='John Doe' | |
87 $ export FAKEUSER | |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
88 $ echo '[ui]' > $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
89 $ echo 'username = $FAKEUSER' >> $HGRC |
11225
d6dbd5e4ee72
ui.username(): expand environment variables in username configuration value.
Chad Dombrova <chadrik@gmail.com>
parents:
11224
diff
changeset
|
90 |
12014 | 91 $ hg init usertest |
92 $ cd usertest | |
93 $ touch bar | |
94 $ hg commit --addremove --quiet -m "added bar" | |
95 $ hg log --template "{author}\n" | |
96 John Doe | |
97 $ cd .. | |
11225
d6dbd5e4ee72
ui.username(): expand environment variables in username configuration value.
Chad Dombrova <chadrik@gmail.com>
parents:
11224
diff
changeset
|
98 |
12109
51272b65b9b7
tests: remove useless sed in test-hgrc
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
12014
diff
changeset
|
99 $ hg showconfig |
17015
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
100 bundle.mainreporoot=$TESTTMP |
12014 | 101 ui.username=$FAKEUSER |
11225
d6dbd5e4ee72
ui.username(): expand environment variables in username configuration value.
Chad Dombrova <chadrik@gmail.com>
parents:
11224
diff
changeset
|
102 |
12014 | 103 $ unset FAKEUSER |
104 $ HGUSER=$olduser | |
105 $ export HGUSER | |
11225
d6dbd5e4ee72
ui.username(): expand environment variables in username configuration value.
Chad Dombrova <chadrik@gmail.com>
parents:
11224
diff
changeset
|
106 |
12697
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
107 showconfig with multiple arguments |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
108 |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
109 $ echo "[alias]" > $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
110 $ echo "log = log -g" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
111 $ echo "[defaults]" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
112 $ echo "identify = -n" >> $HGRC |
12697
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
113 $ hg showconfig alias defaults |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
114 alias.log=log -g |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
115 defaults.identify=-n |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
116 $ hg showconfig alias defaults.identify |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
117 abort: only one config item permitted |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
118 [255] |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
119 $ hg showconfig alias.log defaults.identify |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
120 abort: only one config item permitted |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
121 [255] |
14853ca7e11b
showconfig: don't accept multiple sections and one config item
Brodie Rao <brodie@bitheap.org>
parents:
12640
diff
changeset
|
122 |
12014 | 123 HGPLAIN |
11225
d6dbd5e4ee72
ui.username(): expand environment variables in username configuration value.
Chad Dombrova <chadrik@gmail.com>
parents:
11224
diff
changeset
|
124 |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
125 $ echo "[ui]" > $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
126 $ echo "debug=true" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
127 $ echo "fallbackencoding=ASCII" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
128 $ echo "quiet=true" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
129 $ echo "slash=true" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
130 $ echo "traceback=true" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
131 $ echo "verbose=true" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
132 $ echo "style=~/.hgstyle" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
133 $ echo "logtemplate={node}" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
134 $ echo "[defaults]" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
135 $ echo "identify=-n" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
136 $ echo "[alias]" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
137 $ echo "log=log -g" >> $HGRC |
12014 | 138 |
139 customized hgrc | |
10455
40dfd46d098f
ui: add HGPLAIN environment variable for easier scripting
Brodie Rao <me+hg@dackz.net>
parents:
10296
diff
changeset
|
140 |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
141 $ hg showconfig |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
142 read config from: $TESTTMP/hgrc |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
143 $TESTTMP/hgrc:13: alias.log=log -g |
17015
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
144 none: bundle.mainreporoot=$TESTTMP |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
145 $TESTTMP/hgrc:11: defaults.identify=-n |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
146 $TESTTMP/hgrc:2: ui.debug=true |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
147 $TESTTMP/hgrc:3: ui.fallbackencoding=ASCII |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
148 $TESTTMP/hgrc:4: ui.quiet=true |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
149 $TESTTMP/hgrc:5: ui.slash=true |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
150 $TESTTMP/hgrc:6: ui.traceback=true |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
151 $TESTTMP/hgrc:7: ui.verbose=true |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
152 $TESTTMP/hgrc:8: ui.style=~/.hgstyle |
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
153 $TESTTMP/hgrc:9: ui.logtemplate={node} |
10455
40dfd46d098f
ui: add HGPLAIN environment variable for easier scripting
Brodie Rao <me+hg@dackz.net>
parents:
10296
diff
changeset
|
154 |
12014 | 155 plain hgrc |
156 | |
157 $ HGPLAIN=; export HGPLAIN | |
12366
c01dc9087d9a
tests: drop a bunch of sed calls from unified tests
Matt Mackall <mpm@selenic.com>
parents:
12109
diff
changeset
|
158 $ hg showconfig --config ui.traceback=True --debug |
12640
6cc4b14fb76b
tests: remove redundant globs
Mads Kiilerich <mads@kiilerich.com>
parents:
12399
diff
changeset
|
159 read config from: $TESTTMP/hgrc |
17015
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
160 none: bundle.mainreporoot=$TESTTMP |
12014 | 161 none: ui.traceback=True |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
162 none: ui.verbose=False |
12014 | 163 none: ui.debug=True |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
164 none: ui.quiet=False |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
165 |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
166 plain mode with exceptions |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
167 |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
168 $ cat > plain.py <<EOF |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
169 > def uisetup(ui): |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
170 > ui.write('plain: %r\n' % ui.plain()) |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
171 > EOF |
15372
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
172 $ echo "[extensions]" >> $HGRC |
695ac6aca77f
check-code: fix issues with finding patterns in unified tests, fix tests
Matt Mackall <mpm@selenic.com>
parents:
14992
diff
changeset
|
173 $ echo "plain=./plain.py" >> $HGRC |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
174 $ HGPLAINEXCEPT=; export HGPLAINEXCEPT |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
175 $ hg showconfig --config ui.traceback=True --debug |
14372
be0daa0eeb3e
ui: test plain mode against exceptions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
parents:
13849
diff
changeset
|
176 plain: True |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
177 read config from: $TESTTMP/hgrc |
17015
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
178 none: bundle.mainreporoot=$TESTTMP |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
179 $TESTTMP/hgrc:15: extensions.plain=./plain.py |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
180 none: ui.traceback=True |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
181 none: ui.verbose=False |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
182 none: ui.debug=True |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
183 none: ui.quiet=False |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
184 $ unset HGPLAIN |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
185 $ hg showconfig --config ui.traceback=True --debug |
14372
be0daa0eeb3e
ui: test plain mode against exceptions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
parents:
13849
diff
changeset
|
186 plain: True |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
187 read config from: $TESTTMP/hgrc |
17015
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
188 none: bundle.mainreporoot=$TESTTMP |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
189 $TESTTMP/hgrc:15: extensions.plain=./plain.py |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
190 none: ui.traceback=True |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
191 none: ui.verbose=False |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
192 none: ui.debug=True |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
193 none: ui.quiet=False |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
194 $ HGPLAINEXCEPT=i18n; export HGPLAINEXCEPT |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
195 $ hg showconfig --config ui.traceback=True --debug |
14372
be0daa0eeb3e
ui: test plain mode against exceptions
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
parents:
13849
diff
changeset
|
196 plain: True |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
197 read config from: $TESTTMP/hgrc |
17015
73d20de5f30b
tests: add missing no-outer-repo requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16911
diff
changeset
|
198 none: bundle.mainreporoot=$TESTTMP |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
199 $TESTTMP/hgrc:15: extensions.plain=./plain.py |
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
200 none: ui.traceback=True |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
201 none: ui.verbose=False |
13849
9f97de157aad
HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT
Brodie Rao <brodie@bitheap.org>
parents:
13572
diff
changeset
|
202 none: ui.debug=True |
14992
188936b334b1
dispatch: make sure global options on the command line take precedence
Idan Kamara <idankk86@gmail.com>
parents:
14748
diff
changeset
|
203 none: ui.quiet=False |