sapling/eden/mononoke/tests
Stanislau Hlebik 29bbc0dc15 mononoke: check if content we are about to redact is not reachable
Summary:
That's one of the sev followups. Before redacting a file content let's check if
it exists in "main-bookmark" (which is be default master), and refuse to redact
if it actually exists.

If this check passes (i.e. the content we are about to redact is not reachable
from master) that doesn't mean that we are 100% safe. E.g. this comment can be
in ancestor of master, or in any other repo or it can be added in the next
commit.

This check is a best-effort check to prevent shooting ourselves in the foot.

Reviewed By: aslpavel

Differential Revision: D23476278

fbshipit-source-id: 5a4cd10964a65b8503ba9a6391f17319f0ce37d8
2020-09-03 01:30:14 -07:00
..
fixtures bookmarks: extract BundleReplayData from BookmarkUpdateReason 2020-07-10 04:50:24 -07:00
integration mononoke: check if content we are about to redact is not reachable 2020-09-03 01:30:14 -07:00
utils mononoke: megarepotool support for gradual merge 2020-08-04 02:53:15 -07:00
write_stub_log_entry bookmarks: remove repo_id from Bookmarks methods 2020-07-10 04:50:25 -07:00