sapling/eden/scm/tests/test-treestate-trackignore.t
Durham Goode fe7c45c730 status: enable more tests for rust status
Summary: We've fixed various issues, so more of these tests are now passing.

Reviewed By: quark-zju

Differential Revision: D40487597

fbshipit-source-id: 995e6fa2844bf6d394925f4322a225f7635436aa
2022-10-18 18:50:11 -07:00

32 lines
929 B
Perl

#require fsmonitor
$ configure modernclient
# trackignore functionality is not used in production anymore, so we can
# probably delete this test once we fully migrated to Rust status.
$ setconfig status.use-rust=False workingcopy.ruststatus=False
$ newclientrepo repo
$ 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 2>&1 | 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 2>&1 | grep tracking
start tracking 1 ignored files
$ hg status
$ hg debugtree list
.gitignore: 0666 -1 -1 NEED_CHECK