diff tests/testlib/ext-sidedata.py @ 46050:f105c49e89cd

upgrade: split actual upgrade code away from the main module The main module is getting big and hard to follow. So we are splitting all the logic to actually run an upgrade in a sub module. It nicely highlight that there are very few actual call point to the code we just moved. Differential Revision: https://phab.mercurial-scm.org/D9476
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 01 Dec 2020 09:13:08 +0100
parents edf4fa06df94
children 59fa3890d40a
line wrap: on
line diff
--- a/tests/testlib/ext-sidedata.py	Sat Dec 05 23:11:49 2020 +0100
+++ b/tests/testlib/ext-sidedata.py	Tue Dec 01 09:13:08 2020 +0100
@@ -15,9 +15,10 @@
     node,
     requirements,
     revlog,
-    upgrade,
 )
 
+from mercurial.upgrade_utils import engine as upgrade_engine
+
 from mercurial.revlogutils import sidedata
 
 
@@ -79,5 +80,5 @@
     extensions.wrapfunction(revlog.revlog, 'addrevision', wrapaddrevision)
     extensions.wrapfunction(revlog.revlog, 'revision', wraprevision)
     extensions.wrapfunction(
-        upgrade, 'getsidedatacompanion', wrapgetsidedatacompanion
+        upgrade_engine, 'getsidedatacompanion', wrapgetsidedatacompanion
     )