Show More
@@ -98,12 +98,13 b' def publish(name, desc, path, port):' | |||||
98 | server.registerService(svc) |
|
98 | server.registerService(svc) | |
99 |
|
99 | |||
100 | class hgwebzc(hgweb_mod.hgweb): |
|
100 | class hgwebzc(hgweb_mod.hgweb): | |
101 | def __init__(self, repo, name=None): |
|
101 | def __init__(self, repo, name=None, baseui=None): | |
102 | super(hgwebzc, self).__init__(repo, name) |
|
102 | super(hgwebzc, self).__init__(repo, name=name, baseui=baseui) | |
103 | name = self.reponame or os.path.basename(repo.root) |
|
103 | name = self.reponame or os.path.basename(self.repo.root) | |
104 | path = self.repo.ui.config("web", "prefix", "").strip('/') |
|
104 | path = self.repo.ui.config("web", "prefix", "").strip('/') | |
105 | desc = self.repo.ui.config("web", "description", name) |
|
105 | desc = self.repo.ui.config("web", "description", name) | |
106 |
publish(name, desc, path, |
|
106 | publish(name, desc, path, | |
|
107 | int(self.repo.ui.config("web", "port", 8000))) | |||
107 |
|
108 | |||
108 | class hgwebdirzc(hgwebdir_mod.hgwebdir): |
|
109 | class hgwebdirzc(hgwebdir_mod.hgwebdir): | |
109 | def __init__(self, conf, baseui=None): |
|
110 | def __init__(self, conf, baseui=None): |
General Comments 0
You need to be logged in to leave comments.
Login now