sapling/tests/test-fsmonitor-blackbox.t
Jun Wu 051e7a99f0 fsmonitor: limit file list being logged to blackbox
Summary:
Sometimes watchman can return a very long list of files. That would make
blackbox rotate too frequently. Truncate that list.

Reviewed By: phillco

Differential Revision: D9997658

fbshipit-source-id: 1314b7c299a5f50ed344e0b85befd4c0525b1da7
2018-09-21 16:51:44 -07:00

41 lines
531 B
Raku

#require fsmonitor
$ newrepo
$ enable blackbox
$ setconfig blackbox.track=fsmonitor_details
$ hg status
$ touch x
$ hg status
? x
$ touch 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
$ hg status
? 1
? 10
? 11
? 12
? 13
? 14
? 15
? 16
? 17
? 18
? 19
? 2
? 20
? 21
? 22
? 23
? 24
? 25
? 3
? 4
? 5
? 6
? 7
? 8
? 9
? x
$ grep returned .hg/blackbox.log
*> watchman returned ['x'] (glob)
*> watchman returned [*] and 5 more entries (glob)