Mercurial > hg
changeset 50457:392e2f31444a
transaction: tr._names are actually bytes, use byte string to join them
Looks like this is never checked in the tests? But trying e.g. `print(tr)` by
hand before this change would give:
TypeError: sequence item 0: expected str instance, bytes found
Looks like tr._names are always bytes (although this isn't actually enforced,
but maybe at some point it will at least be type checked e.g. by pytype).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 03 May 2023 18:17:32 -0300 |
parents | be676c313c7b |
children | 714b63a707b7 |
files | mercurial/transaction.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/transaction.py Mon Apr 17 00:27:46 2023 +0200 +++ b/mercurial/transaction.py Wed May 03 18:17:32 2023 -0300 @@ -314,7 +314,7 @@ self._abortcallback = {} def __repr__(self): - name = '/'.join(self._names) + name = b'/'.join(self._names) return '<transaction name=%s, count=%d, usages=%d>' % ( name, self._count,