Mercurial > hg
changeset 40321:6994a8be3663
storageutil: convert fileid to bytes to avoid cast to %s
test-storage.py manages to trigger this on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D5117
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 16 Oct 2018 17:45:39 +0200 |
parents | 9b2e1b00ee94 |
children | ddeb510d6815 |
files | mercurial/utils/storageutil.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/utils/storageutil.py Tue Oct 16 17:48:28 2018 +0200 +++ b/mercurial/utils/storageutil.py Tue Oct 16 17:45:39 2018 +0200 @@ -182,7 +182,8 @@ try: return store.node(fileid) except IndexError: - raise error.LookupError(fileid, identifier, _('no match found')) + raise error.LookupError('%d' % fileid, identifier, + _('no match found')) if len(fileid) == 20: try: