Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 6781:b4b7261164d5
hgweb: protocol functions take repo instead of web
This makes it much easier for implementers of hgweb alternatives to simply
call into protocol functions after setting up a repo and a request.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sun, 29 Jun 2008 11:34:36 +0200 |
parents | 4c1d67e0fa8c |
children | 18c429ea3a0e |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Sun Jun 29 11:35:08 2008 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Sun Jun 29 11:34:36 2008 +0200 @@ -92,7 +92,7 @@ if cmd in perms and not self.check_perm(req, perms[cmd]): return method = getattr(protocol, cmd) - method(self, req) + method(self.repo, req) return # work with CGI variables to create coherent structure