##// END OF EJS Templates
hgweb/server.py: use hg.repository to create a repo object
Alexis S. L. Carvalho -
r4091:3d7480ad default
parent child Browse files
Show More
@@ -222,8 +222,8 b' def create_server(ui, repo):'
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)"))
General Comments 0
You need to be logged in to leave comments. Login now