mercurial/revlogutils/constants.py
changeset 47072 4c041c71ec01
parent 46859 c6e23fb4bfb4
child 47077 119790e1c67c
--- a/mercurial/revlogutils/constants.py	Tue May 04 08:54:28 2021 -0700
+++ b/mercurial/revlogutils/constants.py	Tue Apr 06 05:20:24 2021 +0200
@@ -13,6 +13,20 @@
 
 from ..interfaces import repository
 
+### Internal utily constants
+
+KIND_CHANGELOG = 1001  # over 256 to not be comparable with a bytes
+KIND_MANIFESTLOG = 1002
+KIND_FILELOG = 1003
+KIND_OTHER = 1004
+
+ALL_KINDS = {
+    KIND_CHANGELOG,
+    KIND_MANIFESTLOG,
+    KIND_FILELOG,
+    KIND_OTHER,
+}
+
 ### main revlog header
 
 INDEX_HEADER = struct.Struct(b">I")