sapling/tests/testutil
Jun Wu 484939a75d hgmain: make bindings a builtin module
Summary:
Global states (For example, the global blackbox instance, potentially some
logging / tracing libraries) are separate in the Rust and Python worlds.

That is because related code gets compiled separately:

  bindings.so (top-level)
   \_ blackbox

  hgmain (top-level)
   \_ blackbox (have a different global instance than the above blackbox)

To address it, make `bindings` a builtin module in `hgmain`.

The builtin module was renamed from `edenscmnative.bindings` to `bindings` so
it does not require importing anything else (For example, `edenscmnative`).

This unfortunately makes `hg` 100+ MB. Fortunately it can be compressed well
(gzip: 31MB).

Reviewed By: singhsrb

Differential Revision: D17429688

fbshipit-source-id: bf16910d7a260ca58db0d272fc95d8071d47bbc6
2019-09-20 18:32:36 -07:00
..
dott hgmain: make bindings a builtin module 2019-09-20 18:32:36 -07:00
__init__.py testutil: add a utility to calculate argument positions 2019-07-17 21:11:27 -07:00
argspans.py testutil/dott: simplify error messages 2019-09-10 13:01:33 -07:00
autofix.py testutil/dott: simplify error messages 2019-09-10 13:01:33 -07:00