Debian Codegraph @

tests/test-nested-repo.t

raw
1 $ hg init a
2 $ cd a
3 $ hg init b
4 $ echo x > b/x
5
6 Should print nothing:
7
8 $ hg add b
9 $ hg st
10
11 $ echo y > b/y
12 $ hg st
13
14 Should fail:
15
16 $ hg st b/x
17 abort: path 'b/x' is inside nested repo 'b'
18 [255]
19 $ hg add b/x
20 abort: path 'b/x' is inside nested repo 'b'
21 [255]
22
23 Should fail:
24
25 $ hg add b b/x
26 abort: path 'b/x' is inside nested repo 'b'
27 [255]
28 $ hg st
29
30 Should arguably print nothing:
31
32 $ hg st b
33
34 $ echo a > a
35 $ hg ci -Ama a
36
37 Should fail:
38
39 $ hg mv a b
40 abort: path 'b/a' is inside nested repo 'b'
41 [255]
42 $ hg st
43
44 $ cd ..