Submitter | Gregory Szorc |
---|---|
Date | Sept. 9, 2015, 9:27 p.m. |
Message ID | <41a5871b279b2d1be100.1441834048@gps-mbp.local> |
Download | mbox | patch |
Permalink | /patch/10445/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -323,9 +323,9 @@ class hgweb(object): if query: raise ErrorResponse(HTTP_NOT_FOUND) if cmd in perms: self.check_perm(rctx, req, perms[cmd]) - return protocol.call(self.repo, req, cmd) + return protocol.call(rctx.repo, req, cmd) except ErrorResponse as inst: # A client that sends unbundle without 100-continue will # break if we respond early. if (cmd == 'unbundle' and