Patchwork D10563: revlog: replace flag check related to generaldelta with attribute check

login
register
mail settings
Submitter phabricator
Date May 3, 2021, 11:50 a.m.
Message ID <differential-rev-PHID-DREV-cwq5pfrhmlrqnmn6xpt3-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48885/
State Superseded
Headers show

Comments

phabricator - May 3, 2021, 11:50 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Same logic as the previous changesets.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10563

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -793,7 +793,7 @@ 
     index = r.index
     start = r.start
     length = r.length
-    generaldelta = r.version & revlog.FLAG_GENERALDELTA
+    generaldelta = r._generaldelta
     withsparseread = getattr(r, '_withsparseread', False)
 
     def revinfo(rev):