sapling/eden/scm/tests/test-status-mlog.t
Xavier Deguillard e0e01cbc81 bundle2: backout D19656773
Summary: This broke a bunch of tests. Revert it and re-enable all the tests.

Reviewed By: DurhamG

Differential Revision: D19665042

fbshipit-source-id: c3c17e3ac7e2ea028be5b5836bc8349cdf56184e
2020-01-31 10:48:19 -08:00

32 lines
812 B
Perl

#chg-compatible
Test logging of "M" entries
$ newrepo
$ 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 --no-timestamp --no-sid --pattern '{"legacy_log":{"service":"status"}}'
[legacy][status] M a: size changed (2 -> 4)
$ sleep 1
$ rm -rf a .hg/blackbox*
$ touch a
$ hg status
M a
$ hg blackbox --no-timestamp --no-sid --pattern '{"legacy_log":{"service":"status"}}'
[legacy][status] M a: size changed (2 -> 0), os.stat size = 0
$ sleep 1
$ rm -rf .hg/blackbox*
$ echo 1 > a
$ hg status
$ hg blackbox --no-timestamp --no-sid --pattern '{"legacy_log":{"service":"status"}}'
[legacy][status] L a: mtime changed (* -> *) (glob)
[legacy][status] C a: checked in filesystem