mercurial/changelog.py
changeset 47072 4c041c71ec01
parent 47012 d55b71393907
child 47073 64cd1496bb70
--- a/mercurial/changelog.py	Tue May 04 08:54:28 2021 -0700
+++ b/mercurial/changelog.py	Tue Apr 06 05:20:24 2021 +0200
@@ -25,7 +25,10 @@
     dateutil,
     stringutil,
 )
-from .revlogutils import flagutil
+from .revlogutils import (
+    constants as revlog_constants,
+    flagutil,
+)
 
 _defaultextra = {b'branch': b'default'}
 
@@ -401,7 +404,8 @@
         revlog.revlog.__init__(
             self,
             opener,
-            indexfile,
+            target=(revlog_constants.KIND_CHANGELOG, None),
+            indexfile=indexfile,
             datafile=datafile,
             checkambig=True,
             mmaplargeindex=True,