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.
% test file addition with bad case
adding a
A a
a
% test case collision on rename (issue 750)
adding a
a
committed changeset 0:07f4944404050f47db2e5c5071e0e84e7a27bba9
A: not overwriting - file exists
% test case collision between revisions (issue 912)
adding a
adding A
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
1 files updated, 0 files merged, 1 files removed, 0 files unresolved