diff mercurial/changelog.py @ 32307:3caec778774b

changelog: make sure datafile is 00changelog.d (API) 0ad0d26ff7 makes it possible for changelog datafile to be "00changelog.i.d", which is wrong. This patch adds an explicit datafile parameter to fix it.
author Jun Wu <quark@fb.com>
date Wed, 17 May 2017 20:14:27 -0700
parents 0ad0d26ff703
children 67026d65a4fc
line wrap: on
line diff
--- a/mercurial/changelog.py	Wed May 17 23:01:56 2017 +0900
+++ b/mercurial/changelog.py	Wed May 17 20:14:27 2017 -0700
@@ -273,7 +273,9 @@
         else:
             indexfile = '00changelog.i'
 
-        revlog.revlog.__init__(self, opener, indexfile, checkambig=True)
+        datafile = '00changelog.d'
+        revlog.revlog.__init__(self, opener, indexfile, datafile=datafile,
+                               checkambig=True)
 
         if self._initempty:
             # changelogs don't benefit from generaldelta