This is an archive of the discontinued Mercurial Phabricator instance.

scmutil: try-delete `.hg/store/requires` if store requirements are empty
ClosedPublic

Authored by pulkit on Nov 21 2020, 8:07 AM.

Details

Summary

When downgrading from a shared-safe repository to non-shared-safe repository, we
end up in a case where we had requirements stored in .hg/store/requires but no
longer want them there.

Let's explicitly try delete the .hg/store/requires file is store requirements
are empty.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.