mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
Don't create repo objects in hgwebdir, ui object is enough.
This commit is contained in:
parent
21afb81102
commit
1174c2ce17
@ -942,8 +942,9 @@ class hgwebdir:
|
||||
repos = self.cp.items("paths")
|
||||
repos.sort()
|
||||
for name, path in repos:
|
||||
repo = repository(ui(), path)
|
||||
get = repo.ui.config
|
||||
u = ui()
|
||||
u.readconfig(file(os.path.join(path, '.hg', 'hgrc')))
|
||||
get = u.config
|
||||
|
||||
url = os.environ["REQUEST_URI"] + "/" + name
|
||||
url = url.replace("//", "/")
|
||||
|
Loading…
Reference in New Issue
Block a user