Patchwork D7073: revlog: introduce a `_uncheckedflags` shortcut

login
register
mail settings
Submitter phabricator
Date Oct. 12, 2019, 4:47 p.m.
Message ID <differential-rev-PHID-DREV-wjfvrwotsjw32mb4zyv7-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42274/
State Superseded
Headers show

Comments

phabricator - Oct. 12, 2019, 4:47 p.m.
marmoute created this revision.
Herald added a reviewer: indygreg.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This will be useful in the next changeset.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-devel
phabricator - Oct. 16, 2019, 5:30 p.m.
martinvonz added a comment.


  Should no longer be necessary with D7123 <https://phab.mercurial-scm.org/D7123>, right?

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7073/new/

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

To: marmoute, indygreg, #hg-reviewers
Cc: martinvonz, mercurial-devel
phabricator - Oct. 17, 2019, 11:30 p.m.
marmoute added a comment.


  In D7073#104561 <https://phab.mercurial-scm.org/D7073#104561>, @martinvonz wrote:
  
  > Should no longer be necessary with D7123 <https://phab.mercurial-scm.org/D7123>, right?
  
  This is no longer necessary, but phab apparently do not detect the prune nor update the former children's parents…

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7073/new/

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

To: marmoute, indygreg, #hg-reviewers
Cc: martinvonz, mercurial-devel

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -691,6 +691,9 @@ 
     def flags(self, rev):
         return self.index[rev][0] & 0xFFFF
 
+    # fast flag(rev) where rev isn't filtered
+    _uncheckedflags = flags
+
     def length(self, rev):
         return self.index[rev][1]