mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
f8f8e3962a
Summary: We're seeing issues where a file show up as "M" while it isn't expected so. When running "hg status" again, the file disappeared. Existing logs suggest that watchman does not think anything has changed between the two "status" commands. Therefore add more logs of the internals to try to get more insights. Differential Revision: D13954209 fbshipit-source-id: 0b89a6da5e8702e707440ef2e1823eb4968c10be
32 lines
615 B
Perl
32 lines
615 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 .hg/blackbox*
|
|
$ echo 3 > a
|
|
$ hg status
|
|
M a
|
|
$ hg blackbox | grep 'a:'
|
|
*> L a: mtime changed (* -> *) (glob)
|
|
*> M a: checked in filesystem (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)
|