mercurial/changelog.py
changeset 5791 d09ccdbf7286
parent 5745 234e40e636a8
child 6211 f89fd07fc51d
equal deleted inserted replaced
5790:f85c0034a062 5791:d09ccdbf7286
   119 
   119 
   120     def decode_extra(self, text):
   120     def decode_extra(self, text):
   121         extra = {}
   121         extra = {}
   122         for l in text.split('\0'):
   122         for l in text.split('\0'):
   123             if l:
   123             if l:
   124                 k, v = text.decode('string_escape').split(':', 1)
   124                 k, v = l.decode('string_escape').split(':', 1)
   125                 extra[k] = v
   125                 extra[k] = v
   126         return extra
   126         return extra
   127 
   127 
   128     def encode_extra(self, d):
   128     def encode_extra(self, d):
   129         # keys must be sorted to produce a deterministic changelog entry
   129         # keys must be sorted to produce a deterministic changelog entry