Mercurial > public > mercurial-scm > hg-stable
diff mercurial/obsolete.py @ 36453:2831d918e1b4
py3: convert known-int values to bytes using %d
I decided to grep around for \sstr\( and see what low-hanging fruit
that showed me. This was part of that hunt. That grep pattern still
has some things worth exploring.
Differential Revision: https://phab.mercurial-scm.org/D2441
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 25 Feb 2018 23:09:07 -0500 |
parents | 75d9dcb64e7d |
children | c6061cadb400 |
line wrap: on
line diff
--- a/mercurial/obsolete.py Sun Feb 25 23:08:41 2018 -0500 +++ b/mercurial/obsolete.py Sun Feb 25 23:09:07 2018 -0500 @@ -656,7 +656,7 @@ self.caches.clear() # records the number of new markers for the transaction hooks previous = int(transaction.hookargs.get('new_obsmarkers', '0')) - transaction.hookargs['new_obsmarkers'] = str(previous + len(new)) + transaction.hookargs['new_obsmarkers'] = '%d' % (previous + len(new)) return len(new) def mergemarkers(self, transaction, data):