changeset 118:a0e57df96e96

Add fileopener to move some pathname knowledge from filelog to repository
author mpm@selenic.com
date Fri, 20 May 2005 17:38:01 -0800
parents 2ac722ad1a9d
children c7a66f9752a4
files mercurial/hg.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"),