# HG changeset patch # User Alexis S. L. Carvalho # Date 1171536560 7200 # Node ID 3d7480ada3e5090bd7ff29c1706ed153a90ea7c8 # Parent 785ad8cd1d3129892959751eb6aadc86b15ce864 hgweb/server.py: use hg.repository to create a repo object diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py +++ b/mercurial/hgweb/server.py @@ -222,8 +222,8 @@ def create_server(ui, repo): 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)"))