Patchwork D10615: sidedata: use revlogv2 requirement in the test helper

login
register
mail settings
Submitter phabricator
Date May 3, 2021, 12:08 p.m.
Message ID <differential-rev-PHID-DREV-oeupasxbavuaamin534p-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48931/
State New
Headers show

Comments

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

REVISION SUMMARY
  We are about to drop the requirement dedicated to sidedata (since revlogv2 will
  support them unconditionally and previous version will not.).
  
  To prepare this more we adapt the test code to not use that requirements.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/testlib/ext-sidedata.py

CHANGE DETAILS




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

Patch

diff --git a/tests/testlib/ext-sidedata.py b/tests/testlib/ext-sidedata.py
--- a/tests/testlib/ext-sidedata.py
+++ b/tests/testlib/ext-sidedata.py
@@ -60,7 +60,7 @@ 
     assert not computers and not removers  # deal with composition later
     addedreqs = dstrepo.requirements - srcrepo.requirements
 
-    if requirements.SIDEDATA_REQUIREMENT in addedreqs:
+    if requirements.REVLOGV2_REQUIREMENT in addedreqs:
 
         def computer(repo, revlog, rev, old_sidedata):
             assert not old_sidedata  # not supported yet