comparison mercurial/debugcommands.py @ 33118:2f812b0d1936

py3: pass the memoryview object into bytes() to get the value
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 26 Jun 2017 23:57:49 +0530
parents 1b6946f87c50
children e88fdec9cb9e
comparison
equal deleted inserted replaced
33117:a5e1393f61a2 33118:2f812b0d1936
1816 numother += 1 1816 numother += 1
1817 1817
1818 # Obtain data on the raw chunks in the revlog. 1818 # Obtain data on the raw chunks in the revlog.
1819 segment = r._getsegmentforrevs(rev, rev)[1] 1819 segment = r._getsegmentforrevs(rev, rev)[1]
1820 if segment: 1820 if segment:
1821 chunktype = segment[0] 1821 chunktype = bytes(segment[0:1])
1822 else: 1822 else:
1823 chunktype = 'empty' 1823 chunktype = 'empty'
1824 1824
1825 if chunktype not in chunktypecounts: 1825 if chunktype not in chunktypecounts:
1826 chunktypecounts[chunktype] = 0 1826 chunktypecounts[chunktype] = 0