2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2019-02-06 06:36:49 +03:00
|
|
|
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
|
2019-06-26 20:59:13 +03:00
|
|
|
$ hg blackbox --no-timestamp --no-sid --pattern '{"legacy_log":{"service":"status"}}'
|
|
|
|
[legacy][status] M a: size changed (2 -> 4)
|
2019-02-06 06:36:49 +03:00
|
|
|
|
|
|
|
$ sleep 1
|
2019-06-26 20:59:13 +03:00
|
|
|
$ rm -rf a .hg/blackbox*
|
2019-02-15 02:57:41 +03:00
|
|
|
$ touch a
|
2019-02-06 06:36:49 +03:00
|
|
|
$ hg status
|
|
|
|
M a
|
2019-06-26 20:59:13 +03:00
|
|
|
$ hg blackbox --no-timestamp --no-sid --pattern '{"legacy_log":{"service":"status"}}'
|
|
|
|
[legacy][status] M a: size changed (2 -> 0), os.stat size = 0
|
2019-02-06 06:36:49 +03:00
|
|
|
|
|
|
|
$ sleep 1
|
2019-06-26 20:59:13 +03:00
|
|
|
$ rm -rf .hg/blackbox*
|
2019-02-06 06:36:49 +03:00
|
|
|
$ echo 1 > a
|
|
|
|
$ hg status
|
2019-06-26 20:59:13 +03:00
|
|
|
$ 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
|