mirror of
https://github.com/facebook/sapling.git
synced 2024-10-16 19:57:18 +03:00
64c3b8c2ab
Summary: Similar to chg. Add flags to run tests with watchman. This is mostly moving features from `fsmonitor-run-tests.py`. The blacklist is converted to `#require no-fsmonitor`. Reviewed By: phillco Differential Revision: D8434518 fbshipit-source-id: a8512cd71c1171e9037f36dbef195f1e6210f27e
47 lines
582 B
Perl
47 lines
582 B
Perl
#require no-fsmonitor
|
|
|
|
$ 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
|
|
|
|
Should fail:
|
|
|
|
$ hg st b/x
|
|
abort: path 'b/x' is inside nested repo 'b'
|
|
[255]
|
|
$ hg add b/x
|
|
abort: path 'b/x' is inside nested repo 'b'
|
|
[255]
|
|
|
|
Should fail:
|
|
|
|
$ hg add b b/x
|
|
abort: path 'b/x' is inside nested repo 'b'
|
|
[255]
|
|
$ 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'
|
|
[255]
|
|
$ hg st
|
|
|
|
$ cd ..
|