equal
deleted
inserted
replaced
220 |
220 |
221 def make_handler(self): |
221 def make_handler(self): |
222 if self.webdir_conf: |
222 if self.webdir_conf: |
223 hgwebobj = self.webdirmaker(self.webdir_conf, ui) |
223 hgwebobj = self.webdirmaker(self.webdir_conf, ui) |
224 elif self.repo is not None: |
224 elif self.repo is not None: |
225 hgwebobj = self.repoviewmaker(repo.__class__(repo.ui, |
225 hgwebobj = self.repoviewmaker(hg.repository(repo.ui, |
226 repo.origroot)) |
226 repo.root)) |
227 else: |
227 else: |
228 raise hg.RepoError(_("There is no Mercurial repository here" |
228 raise hg.RepoError(_("There is no Mercurial repository here" |
229 " (.hg not found)")) |
229 " (.hg not found)")) |
230 return hgwebobj |
230 return hgwebobj |
231 |
231 |