Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/hgweb/server.py @ 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 | 40c9710e8182 |
children | 49237d6ae97d 178007785be8 |
comparison
equal
deleted
inserted
replaced
4090:785ad8cd1d31 | 4091:3d7480ada3e5 |
---|---|
220 | 220 |
221 def make_handler(self): | 221 def make_handler(self): |
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)")) |
230 return hgwebobj | 230 return hgwebobj |
231 | 231 |