diff mercurial/revlog.py @ 4266:1b5c38e9d7aa

revlog: don't pass datafile as an argument
author Matt Mackall <mpm@selenic.com>
date Thu, 22 Mar 2007 19:12:03 -0500
parents 2a8b6d78d7ee
children b11a2fb59cf5
line wrap: on
line diff
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -311,8 +311,7 @@ class revlog(object):
     remove data, and can use some simple techniques to avoid the need
     for locking while reading.
     """
-    def __init__(self, opener, indexfile, datafile,
-                 defversion=REVLOG_DEFAULT_VERSION):
+    def __init__(self, opener, indexfile, defversion=REVLOG_DEFAULT_VERSION):
         """
         create a revlog object
 
@@ -320,7 +319,7 @@ class revlog(object):
         and can be used to implement COW semantics or the like.
         """
         self.indexfile = indexfile
-        self.datafile = datafile
+        self.datafile = indexfile[:-2] + ".d"
         self.opener = opener
 
         self.indexstat = None