Mercurial > hg
comparison mercurial/debugcommands.py @ 47137:c261899fb282
revlog: replace flag check related to generaldelta with attribute check
Same logic as the previous changesets.
Differential Revision: https://phab.mercurial-scm.org/D10563
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:20:25 +0200 |
parents | bea4717415c0 |
children | f58a13c52726 |
comparison
equal
deleted
inserted
replaced
47136:84b176ad2860 | 47137:c261899fb282 |
---|---|
791 opts = pycompat.byteskwargs(opts) | 791 opts = pycompat.byteskwargs(opts) |
792 r = cmdutil.openrevlog(repo, b'debugdeltachain', file_, opts) | 792 r = cmdutil.openrevlog(repo, b'debugdeltachain', file_, opts) |
793 index = r.index | 793 index = r.index |
794 start = r.start | 794 start = r.start |
795 length = r.length | 795 length = r.length |
796 generaldelta = r.version & revlog.FLAG_GENERALDELTA | 796 generaldelta = r._generaldelta |
797 withsparseread = getattr(r, '_withsparseread', False) | 797 withsparseread = getattr(r, '_withsparseread', False) |
798 | 798 |
799 def revinfo(rev): | 799 def revinfo(rev): |
800 e = index[rev] | 800 e = index[rev] |
801 compsize = e[1] | 801 compsize = e[1] |