hgext/fastannotate/revmap.py
changeset 41116 1205ba8f11ac
parent 39210 1ddb296e0dee
child 42567 4eaf7197a740
equal deleted inserted replaced
41115:536c83535cbd 41116:1205ba8f11ac
   205         f.write(struct.pack('B', flag))
   205         f.write(struct.pack('B', flag))
   206         if flag & renameflag:
   206         if flag & renameflag:
   207             path = self.rev2path(rev)
   207             path = self.rev2path(rev)
   208             if path is None:
   208             if path is None:
   209                 raise error.CorruptedFileError('cannot find path for %s' % rev)
   209                 raise error.CorruptedFileError('cannot find path for %s' % rev)
   210             f.write(path + '\0')
   210             f.write(path + b'\0')
   211         f.write(hsh)
   211         f.write(hsh)
   212 
   212 
   213     @staticmethod
   213     @staticmethod
   214     def _readcstr(f):
   214     def _readcstr(f):
   215         """read a C-language-like '\0'-terminated string"""
   215         """read a C-language-like '\0'-terminated string"""