D5078: py3: fix infinitepush extension tests

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sat Oct 13 08:54:08 EDT 2018


pulkit added inline comments.

INLINE COMMENTS

> store.py:83
>      def write(self, data):
> -        filename = hashlib.sha1(data).hexdigest()
> +        filename = pycompat.sysbytes(hashlib.sha1(data).hexdigest())
>          dirpath = self._dirpath(filename)

We use `node.hex(sha1.digest())` in such cases. Sorry for having preferences here ;)

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5078

To: mbthomas, pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list