Mercurial > hg
changeset 31348:fc06c5260639
branchmap: stringify int in a portable way
We actually need a bytes in Python 3, and thanks to our nasty source
loader this will portably do the right thing.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 12 Mar 2017 00:42:46 -0500 |
parents | 279430eeefdb |
children | 719e64bf9ec2 |
files | mercurial/branchmap.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/branchmap.py Sun Mar 12 00:49:19 2017 -0500 +++ b/mercurial/branchmap.py Sun Mar 12 00:42:46 2017 -0500 @@ -233,7 +233,7 @@ def write(self, repo): try: f = repo.vfs(_filename(repo), "w", atomictemp=True) - cachekey = [hex(self.tipnode), str(self.tiprev)] + cachekey = [hex(self.tipnode), '%d' % self.tiprev] if self.filteredhash is not None: cachekey.append(hex(self.filteredhash)) f.write(" ".join(cachekey) + '\n')