sapling/eden/scm/tests/test-fsmonitor-metadata.t
Muir Manders ee6e258244 status: use watchman metadata to avoid lstat() calls
Summary: Now the Rust status requests file mode, size and mtime from watchman and uses them for file comparison in lieu of lstatting the files. This way, if nothing has changed (think fresh instance), or if file size has changed, we don't need to hit the disk at all!

Reviewed By: quark-zju

Differential Revision: D44033614

fbshipit-source-id: 54cd8bd6dddd7fb88e9538d72174ae88b2118550
2023-03-27 19:03:49 -07:00

23 lines
446 B
Perl

#chg-compatible
#require fsmonitor
$ configure modernclient
$ setconfig status.use-rust=true workingcopy.use-rust=true
$ newclientrepo
$ echo foo > foo
$ hg commit -qAm foo
$ hg status
$ echo banana > foo
$ LOG=vfs=trace hg status
M foo
$ hg dbsh << 'EOS'
> watchman_command = repo._watchmanclient.command
> # Simulate watchman restart
> watchman_command('watch-del-all')
> EOS
$ LOG=vfs=trace hg status
M foo