diff tests/testlib/ext-sidedata-2.py @ 47073:64cd1496bb70

revlog: replace the old `revlog_kind` approach with the new `target` one The new `target` attribute supersedes the previous one. Differential Revision: https://phab.mercurial-scm.org/D10353
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 08 Apr 2021 19:00:21 +0200
parents ba8e508a8e69
children 223b47235d1c
line wrap: on
line diff
--- a/tests/testlib/ext-sidedata-2.py	Tue Apr 06 05:20:24 2021 +0200
+++ b/tests/testlib/ext-sidedata-2.py	Thu Apr 08 19:00:21 2021 +0200
@@ -14,6 +14,7 @@
 import struct
 
 from mercurial.revlogutils import sidedata as sidedatamod
+from mercurial.revlogutils import constants
 
 
 def compute_sidedata_1(repo, revlog, rev, sidedata, text=None):
@@ -35,7 +36,7 @@
 
 def reposetup(ui, repo):
     # Sidedata keys happen to be the same as the categories, easier for testing.
-    for kind in (b'changelog', b'manifest', b'filelog'):
+    for kind in constants.ALL_KINDS:
         repo.register_sidedata_computer(
             kind,
             sidedatamod.SD_TEST1,