comparison mercurial/hgweb/server.py @ 2404:ffc3b2f1ab6a

Fixed 'hg serve --webdir-conf foo' which broke due to split of hgweb.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 05 Jun 2006 16:48:24 +0200
parents 8238a3f039e6
children
comparison
equal deleted inserted replaced
2403:9b0747207925 2404:ffc3b2f1ab6a
126 self.webdirmaker = hgwebdir 126 self.webdirmaker = hgwebdir
127 self.repoviewmaker = hgweb 127 self.repoviewmaker = hgweb
128 128
129 def make_and_run_handler(self, req): 129 def make_and_run_handler(self, req):
130 if self.webdir_conf: 130 if self.webdir_conf:
131 hgwebobj = self.webdirmaker(self.server.webdir_conf) 131 hgwebobj = self.webdirmaker(self.webdir_conf)
132 elif self.repo is not None: 132 elif self.repo is not None:
133 hgwebobj = self.repoviewmaker(repo.__class__(repo.ui, 133 hgwebobj = self.repoviewmaker(repo.__class__(repo.ui,
134 repo.origroot)) 134 repo.origroot))
135 else: 135 else:
136 raise hg.RepoError(_('no repo found')) 136 raise hg.RepoError(_('no repo found'))