sapling/tests/test-nested-repo.t

45 lines
587 B
Perl
Raw Normal View History

2010-09-14 14:20:51 +04:00
$ hg init a
$ cd a
$ hg init b
$ echo x > b/x
Should print nothing:
$ hg add b
$ hg st
$ echo y > b/y
$ hg st
2010-09-14 14:20:51 +04:00
Should fail:
$ hg st b/x
abort: path 'b/x' is inside nested repo 'b' (glob)
2010-09-17 02:51:32 +04:00
[255]
2010-09-14 14:20:51 +04:00
$ hg add b/x
abort: path 'b/x' is inside nested repo 'b' (glob)
2010-09-17 02:51:32 +04:00
[255]
2010-09-14 14:20:51 +04:00
Should fail:
$ hg add b b/x
abort: path 'b/x' is inside nested repo 'b' (glob)
2010-09-17 02:51:32 +04:00
[255]
2010-09-14 14:20:51 +04:00
$ hg st
Should arguably print nothing:
$ hg st b
$ echo a > a
$ hg ci -Ama a
Should fail:
$ hg mv a b
abort: path 'b/a' is inside nested repo 'b' (glob)
2010-09-17 02:51:32 +04:00
[255]
2010-09-14 14:20:51 +04:00
$ hg st
$ cd ..