Mercurial > hg
comparison hgext/remotefilelog/debugcommands.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 | eef9a2d67051 |
comparison
equal
deleted
inserted
replaced
43079:5209fc94b982 | 43080:86e4daa2d54c |
---|---|
185 if not shallowutil.isenabled(repo): | 185 if not shallowutil.isenabled(repo): |
186 return orig(ui, repo, file_) | 186 return orig(ui, repo, file_) |
187 | 187 |
188 r = buildtemprevlog(repo, os.path.basename(file_)[:-2]) | 188 r = buildtemprevlog(repo, os.path.basename(file_)[:-2]) |
189 | 189 |
190 ui.write(b"digraph G {\n") | 190 ui.writenoi18n(b"digraph G {\n") |
191 for i in r: | 191 for i in r: |
192 node = r.node(i) | 192 node = r.node(i) |
193 pp = r.parents(node) | 193 pp = r.parents(node) |
194 ui.write(b"\t%d -> %d\n" % (r.rev(pp[0]), i)) | 194 ui.write(b"\t%d -> %d\n" % (r.rev(pp[0]), i)) |
195 if pp[1] != nullid: | 195 if pp[1] != nullid: |
287 deltastr = b"%0.1f%% %s" % ( | 287 deltastr = b"%0.1f%% %s" % ( |
288 (100.0 * abs(difference) / totalblobsize), | 288 (100.0 * abs(difference) / totalblobsize), |
289 (b"smaller" if difference > 0 else b"bigger"), | 289 (b"smaller" if difference > 0 else b"bigger"), |
290 ) | 290 ) |
291 | 291 |
292 ui.write( | 292 ui.writenoi18n( |
293 b"Total:%s%s %s (%s)\n" | 293 b"Total:%s%s %s (%s)\n" |
294 % ( | 294 % ( |
295 b"".ljust(2 * hashlen - len(b"Total:")), | 295 b"".ljust(2 * hashlen - len(b"Total:")), |
296 (b'%d' % totaldeltasize).ljust(12), | 296 (b'%d' % totaldeltasize).ljust(12), |
297 (b'%d' % totalblobsize).ljust(9), | 297 (b'%d' % totalblobsize).ljust(9), |