Patchwork D11243: remotefilelog: fix what looks like a wrong refactoring

login
register
mail settings
Submitter phabricator
Date Aug. 3, 2021, 1:57 a.m.
Message ID <differential-rev-PHID-DREV-yn2nh27754irhan6iyzc-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49557/
State Superseded
Headers show

Comments

phabricator - Aug. 3, 2021, 1:57 a.m.
valentin.gatienbaron created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  when various store functions started returning a revlog type as the
  first element of the tuple.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  hgext/remotefilelog/remotefilelogserver.py

CHANGE DETAILS




To: valentin.gatienbaron, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/hgext/remotefilelog/remotefilelogserver.py b/hgext/remotefilelog/remotefilelogserver.py
--- a/hgext/remotefilelog/remotefilelogserver.py
+++ b/hgext/remotefilelog/remotefilelogserver.py
@@ -186,7 +186,7 @@ 
                         yield (t, u, e, s)
 
             for x in repo.store.topfiles():
-                if state.noflatmf and x[0][:11] == b'00manifest.':
+                if state.noflatmf and x[1][:11] == b'00manifest.':
                     continue
                 yield x