--- a/hgext/zeroconf/__init__.py Mon Apr 26 11:03:40 2010 -0500
+++ b/hgext/zeroconf/__init__.py Mon Apr 26 11:03:40 2010 -0500
@@ -98,12 +98,13 @@
server.registerService(svc)
class hgwebzc(hgweb_mod.hgweb):
- def __init__(self, repo, name=None):
- super(hgwebzc, self).__init__(repo, name)
- name = self.reponame or os.path.basename(repo.root)
+ def __init__(self, repo, name=None, baseui=None):
+ super(hgwebzc, self).__init__(repo, name=name, baseui=baseui)
+ name = self.reponame or os.path.basename(self.repo.root)
path = self.repo.ui.config("web", "prefix", "").strip('/')
desc = self.repo.ui.config("web", "description", name)
- publish(name, desc, path, int(repo.ui.config("web", "port", 8000)))
+ publish(name, desc, path,
+ int(self.repo.ui.config("web", "port", 8000)))
class hgwebdirzc(hgwebdir_mod.hgwebdir):
def __init__(self, conf, baseui=None):