sapling/tests/test-status-mlog.t
Jun Wu f8f8e3962a status: add a way to log more details about why hg thinks a file was modified
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
2019-02-05 19:41:35 -08:00

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)