Show More
@@ -10,7 +10,7 from __future__ import absolute_import | |||||
10 | import hashlib |
|
10 | import hashlib | |
11 |
|
11 | |||
12 | from mercurial.i18n import _ |
|
12 | from mercurial.i18n import _ | |
13 | from mercurial.node import bin, nullid, short |
|
13 | from mercurial.node import bin, hex, nullid, short | |
14 |
|
14 | |||
15 | from mercurial import ( |
|
15 | from mercurial import ( | |
16 | error, |
|
16 | error, | |
@@ -85,7 +85,7 def writetostore(self, text): | |||||
85 | text = text[offset:] |
|
85 | text = text[offset:] | |
86 |
|
86 | |||
87 | # git-lfs only supports sha256 |
|
87 | # git-lfs only supports sha256 | |
88 |
oid = hashlib.sha256(text). |
|
88 | oid = hex(hashlib.sha256(text).digest()) | |
89 | self.opener.lfslocalblobstore.write(oid, text) |
|
89 | self.opener.lfslocalblobstore.write(oid, text) | |
90 |
|
90 | |||
91 | # replace contents with metadata |
|
91 | # replace contents with metadata |
General Comments 0
You need to be logged in to leave comments.
Login now