mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
d0b81200dd
Summary: Instead of using KeyError to indicate that data isn't found, let's use an Option. The Option type better encode that data is missing without having to do a potentially error prone downcast, this may also enable us to set RUST_BACKTRACE=1 everywhere as we won't except errors to happen often anymore, previously, Mercurial will slow to a crawl due to the many KeyError being thrown around. I initially wanted to keep the change small to help reviews, but that didn't really work out, as the dependencies on the `DataStore`/`HistoryStore` traits are all over the place... Reviewed By: quark-zju Differential Revision: D17728486 fbshipit-source-id: de89c4fc441fd12ff37cc248e2230e4a1403ce44 |
||
---|---|---|
.. | ||
bindings | ||
__init__.py | ||
clindex.pyx | ||
linelog.pyx | ||
litemmap.pyx | ||
patchrmdir.pyx | ||
traceprof.pyx |