mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
338fe1197f
Summary: "st_size" returned by watchman is sometimes 0. We suspect it's incorrect. It could be the file on disk is actually empty, or the kernel made it look empty to watchman in the past, or there is something wrong with serialization, etc. Let's first add a real os.stat to test if the file is really empty. Reviewed By: phillco Differential Revision: D14090851 fbshipit-source-id: bd75cf86bfd117285658ad0dd7fb28d0e8b5585c
31 lines
592 B
Perl
31 lines
592 B
Perl
Test logging of "M" entries
|
|
|
|
$ newrepo
|
|
$ enable blackbox
|
|
$ setconfig experimental.samplestatus=2 blackbox.track=status
|
|
|
|
$ echo 1 > a
|
|
$ hg commit -A a -m a
|
|
|
|
$ echo 2 >> a
|
|
$ hg status
|
|
M a
|
|
$ hg blackbox | grep 'a:'
|
|
*> M a: size changed (2 -> 4) (glob)
|
|
|
|
$ sleep 1
|
|
$ rm a .hg/blackbox*
|
|
$ touch a
|
|
$ hg status
|
|
M a
|
|
$ hg blackbox | grep 'a:'
|
|
*> M a: size changed (2 -> 0), os.stat size = 0 (glob)
|
|
|
|
$ sleep 1
|
|
$ rm .hg/blackbox*
|
|
$ echo 1 > a
|
|
$ hg status
|
|
$ hg blackbox | grep 'a:'
|
|
*> L a: mtime changed (* -> *) (glob)
|
|
*> C a: checked in filesystem (glob)
|