sapling/eden/scm/tests/test-fsmonitor-warn-fresh.t
Durham Goode d8663cb534 treestate: backout making it a hard requirement
Summary:
It turns out some old repos are still using the legacy treedirstate
format, which broke when I made this a hard requirement. Let's roll this back
for now.

Reviewed By: singhsrb

Differential Revision: D19313773

fbshipit-source-id: ded78be033cb04323a2e1d237059947dee509df9
2020-01-08 11:33:28 -08:00

20 lines
588 B
Perl

#require fsmonitor
$ setconfig fsmonitor.warn-fresh-instance=true
$ newrepo
A warning is printed for the first use
$ hg status --debug
warning: watchman has recently started (pid *) - operation will be slower than usual (glob)
poststatusfixup decides to wait for wlock since watchman reported fresh instance
$ hg status --debug
Verify that we can fallback to walking
- Migrate the dirstate to reset the clock
$ hg debugtreestate v0
$ hg debugtreestate on
$ hg status --config fsmonitor.walk_on_invalidate=True --debug
fsmonitor: fallback to core status, no clock