Mercurial > hg-stable
diff mercurial/debugcommands.py @ 39181:1464183343b3
debugrevlog: fix for non-manifest object
The `filelog` object is no longer an actual revlog. Instead, the actual revlog
is stored in the `_revlog` attribute.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 15 Aug 2018 15:20:44 +0200 |
parents | a456c603a83d |
children | 07b82f55f351 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Fri Aug 17 16:11:35 2018 -0700 +++ b/mercurial/debugcommands.py Wed Aug 15 15:20:44 2018 +0200 @@ -2170,7 +2170,10 @@ numother += 1 # Obtain data on the raw chunks in the revlog. - segment = r._getsegmentforrevs(rev, rev)[1] + if util.safehasattr(r, '_getsegmentforrevs'): + segment = r._getsegmentforrevs(rev, rev)[1] + else: + segment = r._revlog._getsegmentforrevs(rev, rev)[1] if segment: chunktype = bytes(segment[0:1]) else: