Show More
@@ -109,8 +109,10 b' invalid options' | |||
|
109 | 109 | |
|
110 | 110 | optional repository |
|
111 | 111 | |
|
112 | #if no-outer-repo | |
|
112 | 113 | $ hg optionalrepo |
|
113 | 114 | init |
|
115 | #endif | |
|
114 | 116 | $ cd alias |
|
115 | 117 | $ cat > .hg/hgrc <<EOF |
|
116 | 118 | > [alias] |
@@ -388,6 +388,9 b' Outgoing -R does-not-exist.hg vs partial' | |||
|
388 | 388 | [255] |
|
389 | 389 | $ cd .. |
|
390 | 390 | |
|
391 | hide outer repo | |
|
392 | $ hg init | |
|
393 | ||
|
391 | 394 | Direct clone from bundle (all-history) |
|
392 | 395 | |
|
393 | 396 |
$ |
@@ -1,3 +1,6 b'' | |||
|
1 | hide outer repo | |
|
2 | $ hg init | |
|
3 | ||
|
1 | 4 |
$ |
|
2 | 5 |
$ |
|
3 | 6 |
$ |
@@ -143,9 +143,9 b' convert full repository (issue1649)' | |||
|
143 | 143 | sorting... |
|
144 | 144 | converting... |
|
145 | 145 | updating tags |
|
146 |
$ hg cat -r tip srcfull-hg |
|
|
146 | $ hg cat -r tip --cwd srcfull-hg src/a | |
|
147 | 147 | a |
|
148 |
$ hg cat -r tip srcfull-hg |
|
|
148 | $ hg cat -r tip --cwd srcfull-hg src/b/c | |
|
149 | 149 | c |
|
150 | 150 | c |
|
151 | 151 |
@@ -14,12 +14,16 b" skip if we can't import elementtree" | |||
|
14 | 14 | > exit 80 |
|
15 | 15 | > fi |
|
16 | 16 | |
|
17 | #if no-outer-repo | |
|
18 | ||
|
17 | 19 | try converting darcs1 repository |
|
18 | 20 | |
|
19 | 21 | $ hg clone -q "$TESTDIR/bundles/darcs1.hg" darcs |
|
20 | 22 | $ hg convert -s darcs darcs/darcs1 2>&1 | grep darcs-1.0 |
|
21 | 23 | darcs-1.0 repository format is unsupported, please upgrade |
|
22 | 24 | |
|
25 | #endif | |
|
26 | ||
|
23 | 27 | initialize darcs repo |
|
24 | 28 | |
|
25 | 29 | $ mkdir darcs-repo |
@@ -1,3 +1,6 b'' | |||
|
1 | hide outer repo | |
|
2 | $ hg init | |
|
3 | ||
|
1 | 4 | Use hgrc within $TESTTMP |
|
2 | 5 | |
|
3 | 6 | $ HGRCPATH=`pwd`/hgrc |
@@ -63,6 +66,7 b' issue1829: wrong indentation' | |||
|
63 | 66 | make sure global options given on the cmdline take precedence |
|
64 | 67 | |
|
65 | 68 | $ hg showconfig --config ui.verbose=True --quiet |
|
69 | bundle.mainreporoot=$TESTTMP | |
|
66 | 70 | ui.verbose=False |
|
67 | 71 | ui.debug=False |
|
68 | 72 | ui.quiet=True |
@@ -93,6 +97,7 b' username expansion' | |||
|
93 | 97 | $ cd .. |
|
94 | 98 | |
|
95 | 99 | $ hg showconfig |
|
100 | bundle.mainreporoot=$TESTTMP | |
|
96 | 101 | ui.username=$FAKEUSER |
|
97 | 102 | |
|
98 | 103 | $ unset FAKEUSER |
@@ -117,7 +122,6 b' showconfig with multiple arguments' | |||
|
117 | 122 | |
|
118 | 123 | HGPLAIN |
|
119 | 124 | |
|
120 | $ p=`pwd` | |
|
121 | 125 | $ echo "[ui]" > $HGRC |
|
122 | 126 | $ echo "debug=true" >> $HGRC |
|
123 | 127 | $ echo "fallbackencoding=ASCII" >> $HGRC |
@@ -137,6 +141,7 b' customized hgrc' | |||
|
137 | 141 | $ hg showconfig |
|
138 | 142 | read config from: $TESTTMP/hgrc |
|
139 | 143 | $TESTTMP/hgrc:13: alias.log=log -g |
|
144 | none: bundle.mainreporoot=$TESTTMP | |
|
140 | 145 | $TESTTMP/hgrc:11: defaults.identify=-n |
|
141 | 146 | $TESTTMP/hgrc:2: ui.debug=true |
|
142 | 147 | $TESTTMP/hgrc:3: ui.fallbackencoding=ASCII |
@@ -152,6 +157,7 b' plain hgrc' | |||
|
152 | 157 | $ HGPLAIN=; export HGPLAIN |
|
153 | 158 | $ hg showconfig --config ui.traceback=True --debug |
|
154 | 159 | read config from: $TESTTMP/hgrc |
|
160 | none: bundle.mainreporoot=$TESTTMP | |
|
155 | 161 | none: ui.traceback=True |
|
156 | 162 | none: ui.verbose=False |
|
157 | 163 | none: ui.debug=True |
@@ -169,6 +175,7 b' plain mode with exceptions' | |||
|
169 | 175 | $ hg showconfig --config ui.traceback=True --debug |
|
170 | 176 | plain: True |
|
171 | 177 | read config from: $TESTTMP/hgrc |
|
178 | none: bundle.mainreporoot=$TESTTMP | |
|
172 | 179 | $TESTTMP/hgrc:15: extensions.plain=./plain.py |
|
173 | 180 | none: ui.traceback=True |
|
174 | 181 | none: ui.verbose=False |
@@ -178,6 +185,7 b' plain mode with exceptions' | |||
|
178 | 185 | $ hg showconfig --config ui.traceback=True --debug |
|
179 | 186 | plain: True |
|
180 | 187 | read config from: $TESTTMP/hgrc |
|
188 | none: bundle.mainreporoot=$TESTTMP | |
|
181 | 189 | $TESTTMP/hgrc:15: extensions.plain=./plain.py |
|
182 | 190 | none: ui.traceback=True |
|
183 | 191 | none: ui.verbose=False |
@@ -187,6 +195,7 b' plain mode with exceptions' | |||
|
187 | 195 | $ hg showconfig --config ui.traceback=True --debug |
|
188 | 196 | plain: True |
|
189 | 197 | read config from: $TESTTMP/hgrc |
|
198 | none: bundle.mainreporoot=$TESTTMP | |
|
190 | 199 | $TESTTMP/hgrc:15: extensions.plain=./plain.py |
|
191 | 200 | none: ui.traceback=True |
|
192 | 201 | none: ui.verbose=False |
@@ -1,5 +1,10 b'' | |||
|
1 | 1 | $ "$TESTDIR/hghave" serve || exit 80 |
|
2 | 2 | |
|
3 | hide outer repo and work in dir without '.hg' | |
|
4 | $ hg init | |
|
5 | $ mkdir dir | |
|
6 | $ cd dir | |
|
7 | ||
|
3 | 8 | Tests some basic hgwebdir functionality. Tests setting up paths and |
|
4 | 9 | collection, different forms of 404s and the subdirectory support. |
|
5 | 10 | |
@@ -59,6 +64,8 b' create repository without .hg/store' | |||
|
59 | 64 | $ rm -R nostore/.hg/store |
|
60 | 65 | $ root=`pwd` |
|
61 | 66 | $ cd .. |
|
67 | ||
|
68 | serve | |
|
62 | 69 | $ cat > paths.conf <<EOF |
|
63 | 70 | > [paths] |
|
64 | 71 | > a=$root/a |
@@ -1,6 +1,10 b'' | |||
|
1 | 1 | Tests whether or not hgwebdir properly handles various symlink topologies. |
|
2 | 2 | |
|
3 | 3 | $ "$TESTDIR/hghave" serve symlink || exit 80 |
|
4 | ||
|
5 | hide outer repo | |
|
6 | $ hg init | |
|
7 | ||
|
4 | 8 |
$ |
|
5 | 9 | $ echo a > a/a |
|
6 | 10 | $ hg --cwd a ci -Ama -d'1 0' |
@@ -2,6 +2,8 b' Translations are optional:' | |||
|
2 | 2 | |
|
3 | 3 | $ "$TESTDIR/hghave" gettext || exit 80 |
|
4 | 4 | |
|
5 | #if no-outer-repo | |
|
6 | ||
|
5 | 7 | Test that translations are compiled and installed correctly. |
|
6 | 8 | |
|
7 | 9 | Default encoding in tests is "ascii" and the translation is encoded |
@@ -23,6 +25,8 b' Different encoding:' | |||
|
23 | 25 | abortado: n\xe3o foi encontrado um reposit\xf3rio em '$TESTTMP' (.hg n\xe3o encontrado)! (esc) |
|
24 | 26 | [255] |
|
25 | 27 | |
|
28 | #endif | |
|
29 | ||
|
26 | 30 | Test keyword search in translated help text: |
|
27 | 31 | |
|
28 | 32 | $ HGENCODING=UTF-8 LANGUAGE=de hg help -k blättern |
@@ -11,6 +11,9 b'' | |||
|
11 | 11 | > interactive = true |
|
12 | 12 | > EOF |
|
13 | 13 | |
|
14 | hide outer repo | |
|
15 | $ hg init | |
|
16 | ||
|
14 | 17 | Run kwdemo before [keyword] files are set up |
|
15 | 18 | as it would succeed without uisetup otherwise |
|
16 | 19 |
@@ -1,5 +1,8 b'' | |||
|
1 | 1 | $ "$TESTDIR/hghave" serve || exit 80 |
|
2 | 2 | |
|
3 | hide outer repo | |
|
4 | $ hg init | |
|
5 | ||
|
3 | 6 |
$ |
|
4 | 7 |
$ |
|
5 | 8 |
$ |
@@ -211,6 +211,8 b' try the --mq option on a command provide' | |||
|
211 | 211 | |
|
212 | 212 | $ cd .. |
|
213 | 213 | |
|
214 | #if no-outer-repo | |
|
215 | ||
|
214 | 216 | init --mq without repo |
|
215 | 217 | |
|
216 | 218 | $ mkdir f |
@@ -220,6 +222,8 b' init --mq without repo' | |||
|
220 | 222 | [255] |
|
221 | 223 | $ cd .. |
|
222 | 224 | |
|
225 | #endif | |
|
226 | ||
|
223 | 227 | init --mq with repo path |
|
224 | 228 | |
|
225 | 229 | $ hg init g |
@@ -271,6 +271,9 b' results here)' | |||
|
271 | 271 | |
|
272 | 272 | $ cd .. |
|
273 | 273 | |
|
274 | hide outer repo | |
|
275 | $ hg init | |
|
276 | ||
|
274 | 277 | Test remote paths with spaces (issue2983): |
|
275 | 278 | |
|
276 | 279 | $ hg init --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo" |
@@ -29,6 +29,9 b' Cleaning both repositories, just as a cl' | |||
|
29 | 29 | 0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
|
30 | 30 | $ rm -rf main/sub |
|
31 | 31 | |
|
32 | hide outer repo | |
|
33 | $ hg init | |
|
34 | ||
|
32 | 35 | Serving them both using hgweb |
|
33 | 36 | |
|
34 | 37 | $ printf '[paths]\n/main = main\nsub = sub\n' > webdir.conf |
@@ -8,8 +8,11 b" BUNDLEPATH = os.path.join(TESTDIR, 'bund" | |||
|
8 | 8 | if not getattr(os, "symlink", False): |
|
9 | 9 | sys.exit(80) # SKIPPED_STATUS defined in run-tests.py |
|
10 | 10 | |
|
11 | u = ui.ui() | |
|
12 | # hide outer repo | |
|
13 | hg.peer(u, {}, '.', create=True) | |
|
14 | ||
|
11 | 15 | # clone with symlink support |
|
12 | u = ui.ui() | |
|
13 | 16 | hg.clone(u, {}, BUNDLEPATH, 'test0') |
|
14 | 17 | |
|
15 | 18 | repo = hg.repository(u, 'test0') |
General Comments 0
You need to be logged in to leave comments.
Login now