Mercurial > public > mercurial-scm > hg
annotate tests/test-nested-repo.t @ 12279:28e2e3804f2e
combine tests
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 14 Sep 2010 12:20:51 +0200 |
parents | tests/test-nested-repo@c7e8fe11f34a |
children | 4134686b83e1 |
rev | line source |
---|---|
12279 | 1 $ hg init a |
2 $ cd a | |
3 $ hg init b | |
4 $ echo x > b/x | |
5 | |
6 Should print nothing: | |
2061
5987c1eac2ce
support nested repositories.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
7 |
12279 | 8 $ hg add b |
9 $ hg st | |
10 | |
11 Should fail: | |
5158
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2982
diff
changeset
|
12 |
12279 | 13 $ hg st b/x |
14 abort: path 'b/x' is inside repo 'b' | |
15 $ hg add b/x | |
16 abort: path 'b/x' is inside repo 'b' | |
5158
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2982
diff
changeset
|
17 |
12279 | 18 Should fail: |
2061
5987c1eac2ce
support nested repositories.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
diff
changeset
|
19 |
12279 | 20 $ hg add b b/x |
21 abort: path 'b/x' is inside repo 'b' | |
22 $ hg st | |
23 | |
24 Should arguably print nothing: | |
25 | |
26 $ hg st b | |
5200
c7e8fe11f34a
path_auditor: cache names of audited directories
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
5158
diff
changeset
|
27 |
12279 | 28 $ echo a > a |
29 $ hg ci -Ama a | |
30 | |
31 Should fail: | |
5158
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2982
diff
changeset
|
32 |
12279 | 33 $ hg mv a b |
34 abort: path 'b/a' is inside repo 'b' | |
35 $ hg st | |
5158
d316124ebbea
Make audit_path more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
2982
diff
changeset
|
36 |