Mercurial > hg
comparison mercurial/bundle2.py @ 43080:86e4daa2d54c
cleanup: mark some ui.(status|note|warn|write) calls as not needing i18n
These used to be marked with no-op parens, but black removes those now
and this is more explicit.
# skip-blame: fallout from mass reformatting
Differential Revision: https://phab.mercurial-scm.org/D6996
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 10:51:16 -0400 |
parents | 687b865b95ad |
children | 4aa72cdf616f |
comparison
equal
deleted
inserted
replaced
43079:5209fc94b982 | 43080:86e4daa2d54c |
---|---|
2386 def handleobsmarker(op, inpart): | 2386 def handleobsmarker(op, inpart): |
2387 """add a stream of obsmarkers to the repo""" | 2387 """add a stream of obsmarkers to the repo""" |
2388 tr = op.gettransaction() | 2388 tr = op.gettransaction() |
2389 markerdata = inpart.read() | 2389 markerdata = inpart.read() |
2390 if op.ui.config(b'experimental', b'obsmarkers-exchange-debug'): | 2390 if op.ui.config(b'experimental', b'obsmarkers-exchange-debug'): |
2391 op.ui.write( | 2391 op.ui.writenoi18n( |
2392 b'obsmarker-exchange: %i bytes received\n' % len(markerdata) | 2392 b'obsmarker-exchange: %i bytes received\n' % len(markerdata) |
2393 ) | 2393 ) |
2394 # The mergemarkers call will crash if marker creation is not enabled. | 2394 # The mergemarkers call will crash if marker creation is not enabled. |
2395 # we want to avoid this if the part is advisory. | 2395 # we want to avoid this if the part is advisory. |
2396 if not inpart.mandatory and op.repo.obsstore.readonly: | 2396 if not inpart.mandatory and op.repo.obsstore.readonly: |