mercurial/hgweb/server.py
changeset 4096 49237d6ae97d
parent 4081 e6d26e71f049
parent 4091 3d7480ada3e5
child 4134 9dc64c8414ca
--- a/mercurial/hgweb/server.py	Thu Feb 15 10:15:08 2007 -0200
+++ b/mercurial/hgweb/server.py	Fri Feb 16 05:27:37 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)"))