hgweb/server.py: use hg.repository to create a repo object
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Thu, 15 Feb 2007 08:49:20 -0200
changeset 4091 3d7480ada3e5
parent 4090 785ad8cd1d31
child 4092 4ced663bebf0
hgweb/server.py: use hg.repository to create a repo object
mercurial/hgweb/server.py
--- 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)"))