Add fileopener to move some pathname knowledge from filelog to repository

This commit is contained in:
mpm@selenic.com 2005-05-20 17:38:01 -08:00
parent a8e8d775f0
commit 484dde5595

View File

@ -240,6 +240,7 @@ class localrepository:
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 @@ class localrepository:
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"),