diff contrib/import-checker.py @ 39329:729082bb9938

revlog: split constants into a new `revlogutils.constants` module We want to split some logic out of the main revlog file (the delta computing logic). However, this logic needs access to multiple constants related to the revlog. So we move all revlog related constants into a new module that could be imported from multiple places. We don't copy the file (preserving blame history) because there are only a few moving lines. Also, copying the file would result in annoying merge conflicts with ongoing work from others contributors.
author Boris Feld <boris.feld@octobus.net>
date Thu, 16 Aug 2018 02:08:13 +0200
parents 8751d1e2a7ff
children 7288838bec1f
line wrap: on
line diff
--- a/contrib/import-checker.py	Thu Jul 12 12:11:20 2018 -0700
+++ b/contrib/import-checker.py	Thu Aug 16 02:08:13 2018 +0200
@@ -28,6 +28,8 @@
     'mercurial.hgweb.request',
     'mercurial.i18n',
     'mercurial.node',
+    # for revlog to re-export constant to extensions
+    'mercurial.revlogutils.constants',
     # for cffi modules to re-export pure functions
     'mercurial.pure.base85',
     'mercurial.pure.bdiff',