mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
ee6e258244
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
23 lines
446 B
Perl
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
|