Add fileopener to move some pathname knowledge from filelog to repository
authormpm@selenic.com
Fri, 20 May 2005 17:38:01 -0800
changeset 118 a0e57df96e96
parent 117 2ac722ad1a9d
child 119 c7a66f9752a4
Add fileopener to move some pathname knowledge from filelog to repository
mercurial/hg.py
--- a/mercurial/hg.py	Fri May 20 17:36:02 2005 -0800
+++ b/mercurial/hg.py	Fri May 20 17:38:01 2005 -0800
@@ -240,6 +240,7 @@
             os.mkdir(self.join("data"))
 
         self.opener = opener(self.path)
+        self.fileopener = opener(self.join("data"))
         self.manifest = manifest(self.opener)
         self.changelog = changelog(self.opener)
         self.ignorelist = None
@@ -288,7 +289,7 @@
         return os.path.join(self.path, f)
 
     def file(self, f):
-        return filelog(self.opener, f)
+        return filelog(self.fileopener, f)
 
     def transaction(self):
         return transaction(self.opener, self.join("journal"),