| 1 |
This test doesn't yet work due to the way fsmonitor is integrated with test runner |
| 2 |
|
| 3 |
$ exit 80 |
| 4 |
|
| 5 |
test sparse interaction with other extensions |
| 6 |
|
| 7 |
$ hg init myrepo |
| 8 |
$ cd myrepo |
| 9 |
$ cat > .hg/hgrc <<EOF |
| 10 |
> [extensions] |
| 11 |
> sparse= |
| 12 |
> strip= |
| 13 |
> EOF |
| 14 |
|
| 15 |
Test fsmonitor integration (if available) |
| 16 |
TODO: make fully isolated integration test a'la https://github.com/facebook/watchman/blob/master/tests/integration/WatchmanInstance.py |
| 17 |
(this one is using the systemwide watchman instance) |
| 18 |
|
| 19 |
$ touch .watchmanconfig |
| 20 |
$ echo "ignoredir1/" >> .hgignore |
| 21 |
$ hg commit -Am ignoredir1 |
| 22 |
adding .hgignore |
| 23 |
$ echo "ignoredir2/" >> .hgignore |
| 24 |
$ hg commit -m ignoredir2 |
| 25 |
|
| 26 |
$ hg sparse --reset |
| 27 |
$ hg sparse -I ignoredir1 -I ignoredir2 -I dir1 |
| 28 |
|
| 29 |
$ mkdir ignoredir1 ignoredir2 dir1 |
| 30 |
$ touch ignoredir1/file ignoredir2/file dir1/file |
| 31 |
|
| 32 |
Run status twice to compensate for a condition in fsmonitor where it will check |
| 33 |
ignored files the second time it runs, regardless of previous state (ask @sid0) |
| 34 |
$ hg status --config extensions.fsmonitor= |
| 35 |
? dir1/file |
| 36 |
$ hg status --config extensions.fsmonitor= |
| 37 |
? dir1/file |
| 38 |
|
| 39 |
Test that fsmonitor ignore hash check updates when .hgignore changes |
| 40 |
|
| 41 |
$ hg up -q ".^" |
| 42 |
$ hg status --config extensions.fsmonitor= |
| 43 |
? dir1/file |
| 44 |
? ignoredir2/file |