mercurial/debugcommands.py
changeset 33107 e88fdec9cb9e
parent 33106 2f812b0d1936
child 33142 4f49810a1011
equal deleted inserted replaced
33106:2f812b0d1936 33107:e88fdec9cb9e
  1882     ui.write(('    deltas    : ') + fmt % pcfmt(deltatotal, totalsize))
  1882     ui.write(('    deltas    : ') + fmt % pcfmt(deltatotal, totalsize))
  1883 
  1883 
  1884     def fmtchunktype(chunktype):
  1884     def fmtchunktype(chunktype):
  1885         if chunktype == 'empty':
  1885         if chunktype == 'empty':
  1886             return '    %s     : ' % chunktype
  1886             return '    %s     : ' % chunktype
  1887         elif chunktype in string.ascii_letters:
  1887         elif chunktype in pycompat.bytestr(string.ascii_letters):
  1888             return '    0x%s (%s)  : ' % (hex(chunktype), chunktype)
  1888             return '    0x%s (%s)  : ' % (hex(chunktype), chunktype)
  1889         else:
  1889         else:
  1890             return '    0x%s      : ' % hex(chunktype)
  1890             return '    0x%s      : ' % hex(chunktype)
  1891 
  1891 
  1892     ui.write('\n')
  1892     ui.write('\n')