Mercurial > hg
comparison mercurial/bundlerepo.py @ 50201:149f09ffef46
bundlerepo: fix string interpolation
Matt Harbison is saying we cannot `%s` a type into a byte string and that seems
reasonable.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 24 Feb 2023 03:03:54 +0100 |
parents | 197204dba8a2 |
children | 3a2df812e1c7 |
comparison
equal
deleted
inserted
replaced
50200:197204dba8a2 | 50201:149f09ffef46 |
---|---|
324 | 324 |
325 elif isinstance(bundle, changegroup.cg1unpacker): | 325 elif isinstance(bundle, changegroup.cg1unpacker): |
326 self._handle_bundle1(bundle, bundlepath) | 326 self._handle_bundle1(bundle, bundlepath) |
327 else: | 327 else: |
328 raise error.Abort( | 328 raise error.Abort( |
329 _(b'bundle type %s cannot be read') % type(bundle) | 329 _(b'bundle type %r cannot be read') % type(bundle) |
330 ) | 330 ) |
331 | 331 |
332 def _handle_bundle1(self, bundle, bundlepath): | 332 def _handle_bundle1(self, bundle, bundlepath): |
333 if bundle.compressed(): | 333 if bundle.compressed(): |
334 f = self._writetempbundle(bundle.read, b'.hg10un', header=b'HG10UN') | 334 f = self._writetempbundle(bundle.read, b'.hg10un', header=b'HG10UN') |