changeset 4091:3d7480ada3e5

hgweb/server.py: use hg.repository to create a repo object
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Thu, 15 Feb 2007 08:49:20 -0200
parents 785ad8cd1d31
children 4ced663bebf0
files mercurial/hgweb/server.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/server.py	Thu Feb 15 08:44:08 2007 -0200
+++ b/mercurial/hgweb/server.py	Thu Feb 15 08:49:20 2007 -0200
@@ -222,8 +222,8 @@
             if self.webdir_conf:
                 hgwebobj = self.webdirmaker(self.webdir_conf, ui)
             elif self.repo is not None:
-                hgwebobj = self.repoviewmaker(repo.__class__(repo.ui,
-                                                             repo.origroot))
+                hgwebobj = self.repoviewmaker(hg.repository(repo.ui,
+                                                            repo.root))
             else:
                 raise hg.RepoError(_("There is no Mercurial repository here"
                                      " (.hg not found)"))