sapling/hgext/largefiles
FUJIWARA Katsunori 89f77ed920 largefiles: use readasstandin() to read hex hash directly from filectx
BTW, C implementation of hexdigest() for SHA-1/256/512 returns hex
hash in lower case, and doctest in Python standard hashlib assumes
that, too. But it isn't explicitly described in API document or so.

Therefore, we can't assume that hexdigest() always returns hex hash in
lower case, for any hash algorithms, on any Python runtimes and
versions.

From point of view of that, it is reasonable for portability that
77f8c025a6ef applies lower() on hex hash in overridefilemerge().

But on the other hand, in largefiles extension, there are still many
code paths comparing between hex hashes or storing hex hash into
standin file, without lower().

Switching to hash algorithm other than SHA-1 may be good chance to
clarify our policy about hexdigest()-ed hash value string.

  - assume that hexdigest() always returns hex hash in lower case, or

  - apply lower() on hex hash in appropriate layers to ensure
    lower-case-ness of it for portability
2017-04-01 02:32:49 +09:00
..
__init__.py extensions: change magic "shipped with hg" string 2016-08-23 11:26:08 -04:00
basestore.py largefiles: use readasstandin() to read hex hash directly from filectx 2017-04-01 02:32:49 +09:00
CONTRIBUTORS hgext: add largefiles extension 2011-09-24 17:35:45 +02:00
lfcommands.py largefiles: use readasstandin() to read hex hash directly from filectx 2017-04-01 02:32:49 +09:00
lfutil.py largefiles: use readasstandin() to read hex hash directly from filectx 2017-04-01 02:32:49 +09:00
localstore.py largefiles: always use filechunkiter when iterating files 2016-10-12 12:22:18 +02:00
overrides.py largefiles: use readasstandin() to read hex hash directly from filectx 2017-04-01 02:32:49 +09:00
proto.py wireproto: perform chunking and compression at protocol layer (API) 2016-11-20 13:50:45 -08:00
remotestore.py largefiles: always use filechunkiter when iterating files 2016-10-12 12:22:18 +02:00
reposetup.py largefiles: use readasstandin() to read hex hash directly from filectx 2017-04-01 02:32:49 +09:00
storefactory.py largefiles: make storefactory._openstore public 2016-06-14 11:21:41 +02:00
uisetup.py py3: make largefiles/uisetup.py use absolute_import 2016-05-10 15:14:41 +02:00
wirestore.py py3: make largefiles/wirestore.py use absolute_import 2016-05-10 15:20:04 +02:00