Mercurial > public > mercurial-scm > hg
comparison mercurial/branchmap.py @ 36150:fa4d333cac58
branchmap: wrap builtin exception in bytes for logging
Differential Revision: https://phab.mercurial-scm.org/D2224
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Feb 2018 08:41:42 -0500 |
parents | a011e4140435 |
children | 46260fac5563 |
comparison
equal
deleted
inserted
replaced
36149:828f44cdfee3 | 36150:fa4d333cac58 |
---|---|
375 try: | 375 try: |
376 data = repo.cachevfs.read(_rbcrevs) | 376 data = repo.cachevfs.read(_rbcrevs) |
377 self._rbcrevs[:] = data | 377 self._rbcrevs[:] = data |
378 except (IOError, OSError) as inst: | 378 except (IOError, OSError) as inst: |
379 repo.ui.debug("couldn't read revision branch cache: %s\n" % | 379 repo.ui.debug("couldn't read revision branch cache: %s\n" % |
380 inst) | 380 pycompat.bytestr(inst)) |
381 # remember number of good records on disk | 381 # remember number of good records on disk |
382 self._rbcrevslen = min(len(self._rbcrevs) // _rbcrecsize, | 382 self._rbcrevslen = min(len(self._rbcrevs) // _rbcrecsize, |
383 len(repo.changelog)) | 383 len(repo.changelog)) |
384 if self._rbcrevslen == 0: | 384 if self._rbcrevslen == 0: |
385 self._names = [] | 385 self._names = [] |