Mercurial > public > mercurial-scm > hg
comparison hgext/fastannotate/revmap.py @ 41116:1205ba8f11ac
fastannotate: add a missing b prefix
Spotted while debugging a test failure, but this wasn't the problem.
# skip-blame b prefix
Differential Revision: https://phab.mercurial-scm.org/D5499
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 06 Jan 2019 15:14:53 -0500 |
parents | 1ddb296e0dee |
children | 4eaf7197a740 |
comparison
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""" |