py3: use hex() to convert the hash to bytes

This commit is contained in:
Pulkit Goyal 2017-06-26 17:20:46 +05:30
parent 10c2f21384
commit 35cedf7901

View File

@ -414,7 +414,7 @@ class mergestate(object):
if fcl.isabsent():
hash = nullhex
else:
hash = hashlib.sha1(fcl.path()).hexdigest()
hash = hex(hashlib.sha1(fcl.path()).digest())
self._repo.vfs.write('merge/' + hash, fcl.data())
self._state[fd] = ['u', hash, fcl.path(),
fca.path(), hex(fca.filenode()),