sapling/eden/scm/tests/test-treestate-trackignore.t
Jun Wu 98ec775d12 py3: fix treestate related tests
Reviewed By: sfilipco

Differential Revision: D22129405

fbshipit-source-id: 4b3338aa09b0834e3c23d94e50929f9e6105b8f6
2020-06-23 14:06:54 -07:00

28 lines
676 B
Perl

#require fsmonitor
$ newrepo
$ cat >> .gitignore << EOF
> .gitignore
> EOF
$ hg status
$ hg debugtree list
.gitignore: 0666 -1 -1 NEED_CHECK
Stop tracking ignored files removes them from treestate. The migration only happens once.
$ setconfig fsmonitor.track-ignore-files=0
$ hg status --debug | grep tracking
stop tracking ignored files
$ hg status
$ hg debugtree list
Start tracking ignored files adds them to treestate. The migration only happens once.
$ setconfig fsmonitor.track-ignore-files=1
$ hg status --debug | grep tracking
start tracking 1 ignored files
$ hg status
$ hg debugtree list
.gitignore: 0666 -1 -1 NEED_CHECK