mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
9eb63ab31f
Summary: A lot of Mononoke expects MPath instances to be non-empty, and some Mononoke code wants empty MPaths. Have formerly-empty `MPath` instances be represented as `None` instead. There's a bit of a wart where we have to check for some instances being empty even though they should never be. This is not a regression -- this is actually a deficiency in our current type hierarchy being exposed. `Entry` can sometimes represent a root manifest, but a root path and a root manifest will never be joined together in practice. We may want to figure out a better way to represent that in the future. Also clean up a bunch of code that checks for empty `MPath` instances. That just isn't possible any more -- yay. Reviewed By: StanislavGlebik Differential Revision: D7359048 fbshipit-source-id: 684f908dabaa06cb25b1dd33f4fd7bb021cb5e1b |
||
---|---|---|
.. | ||
if | ||
mocks | ||
src |