sapling/tests/test-fsmonitor-refreshclock.t
Jun Wu fb02b06bab fsmonitor: add 'debugrefreshwatchmanclock' command
Summary: See the command docstring for the use-case.

Reviewed By: phillco, strager, singhsrb

Differential Revision: D9836447

fbshipit-source-id: 22ff603ce3e0cd95ea4e400ed24a96c0ea636e6b
2018-09-14 18:25:52 -07:00

28 lines
405 B
Perl

#require fsmonitor
$ newrepo
$ hg status
$ touch x
At t0:
$ hg status
? x
$ touch y
$ hg debugrefreshwatchmanclock
abort: only automation can run this
[255]
At t1:
$ HGPLAIN=1 hg debugrefreshwatchmanclock
updating watchman clock from '*' to '*' (glob)
Changes between last watchman clock (t0) and "debugrefreshwatchmanclock" (t1) are missed ("touch y")
$ hg status
? x