add tripwire test for non-readable files in .hg

Summary: Add a test that ensures all files under .hg are readable by everyone. This hopefully will help prevent future issues similar to S247829 (0600 permissions for .hg/hgrc.dynamic).

Reviewed By: yancouto

Differential Revision: D31811425

fbshipit-source-id: 55f5f2bef7b1a6f5eea4f09f153a7eb2468462b3
This commit is contained in:
Muir Manders 2021-10-21 09:18:42 -07:00 committed by Facebook GitHub Bot
parent e842e3ffaf
commit 452ec93f7c

View File

@ -0,0 +1,10 @@
#chg-compatible
$ configure modernclient
$ newclientrepo repo
$ echo a > a
$ hg ci -Amq a
Test that we don't accidentally write non-readable files.
$ find . -not -perm -0444