##// END OF EJS Templates
manifest: use node.hex instead of .encode('hex')...
Augie Fackler -
r31530:160e7ad9 default
parent child Browse files
Show More
@@ -12,7 +12,10 b' import os'
12 import struct
12 import struct
13
13
14 from .i18n import _
14 from .i18n import _
15 from .node import bin
15 from .node import (
16 bin,
17 hex,
18 )
16 from . import (
19 from . import (
17 error,
20 error,
18 mdiff,
21 mdiff,
@@ -355,7 +358,7 b' class _lazymanifest(object):'
355 self.extradata = []
358 self.extradata = []
356
359
357 def _pack(self, d):
360 def _pack(self, d):
358 return d[0] + '\x00' + d[1][:20].encode('hex') + d[2] + '\n'
361 return d[0] + '\x00' + hex(d[1][:20]) + d[2] + '\n'
359
362
360 def text(self):
363 def text(self):
361 self._compact()
364 self._compact()
General Comments 0
You need to be logged in to leave comments. Login now