mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 04:43:19 +03:00
Add fileopener to move some pathname knowledge from filelog to repository
This commit is contained in:
parent
a8e8d775f0
commit
484dde5595
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user