mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
py3: use hex() to convert the hash to bytes
This commit is contained in:
parent
10c2f21384
commit
35cedf7901
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user