Skip to content
Snippets Groups Projects
Commit 7f27e69d authored by Martin Geisler's avatar Martin Geisler
Browse files

util: stop overwriting sha1, overwrite _fastsha1 instead

Some modules (like revlog) would import util.sha1 as _sha1. This
defeats the purpose of having util.sha1 overwrite itself with a faster
version -- revlog would end up always calling the slow version. By
always delegating to util._fastsha1 we avoid this at the cost of an
extra (but unconditional) indirection.
parent 908c5906
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment