sapling/eden
Durham Goode b08a65b5da sparse: fix debugsparse* commands not treating the profile as the root
Summary:
When processing v2 profiles, the root config (i.e. .hg/sparse) is
special in that any v2 profile it loads will be unioned together. To do this, we
need to mark the root profile as isroot. Unfortunately, any command that
manually loaded a sparse profile directly, bypassed the isroot setting. This
meant loading v2 profiles was incorrect for debug commands.

Let's always set isroot for initially loaded configs. This means we should never
call getsparsepatterns with a sparse profile directly. Instead we should call it
with a .hg/sparse equivalent (like a string "%include $sparse_profile"). The
next diff will update some callsites to do this.

Reviewed By: StanislavGlebik

Differential Revision: D35594323

fbshipit-source-id: 8755d92b4fba49a0a27ae1e6298102f5b33b02be
2022-04-12 18:22:09 -07:00
..
fs Add new PathError to mimic InodeError's behavior with a raw path 2022-04-12 16:50:22 -07:00
integration sparse: allow running "sparse explain" in EdenFS repos 2022-04-12 09:32:03 -07:00
locale
mononoke mononoke/walker: setup thrift service 2022-04-12 17:27:17 -07:00
scm sparse: fix debugsparse* commands not treating the profile as the root 2022-04-12 18:22:09 -07:00
test_support Add annotations to eden 2022-02-14 12:17:43 -08:00
test-data test-data: remove snapshot 20190313 2022-02-04 13:50:48 -08:00
.gitignore
.mononoke_test_file test push 2022-01-06 05:57:35 -08:00
Eden.project.toml