equal
deleted
inserted
replaced
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""" |