introduce ServerLocalConfig.use_naming_for_dephash_filenames
Summary:
I've added code to use naming instead of ifiles for the dephash->filename lookup, where applicable.
Now I want to run an A/B test. This diff adds a new hh.conf / JustKnobs / rollout flag, "use_naming_for_dephash_filenames". If true, and if possible, hack will indeed using naming instead of ifiles.
1. add flag in https://www.internalfb.com/intern/justknobs/
2. HackEventLogger.rollout_flags
3. ServerLocalConfig.{t,default,load_,load_,to_rollout_flags}
4. ServerLocalConfig.apply_justknobs_overrides
5. If your logic has a "genv" off which to read ServerLocalConfig, done
6. If your logic only has "ctx", add e.g. to GlobalOptions.tco_xyz and oxidized_regen.sh
For my logic, I needed to make a decision inside Naming_provider based on the setting. Naming_provider has a 'ctx' but doesn't have 'genv'. I figured the easiest way to make the change was to put the setting into tcopt, which is carried within ctx.
Differential Revision:
D30971692
fbshipit-source-id:
b38e8bb9f243a27a53014a286e8a073707c64dc7