mercurial/hgweb/hgweb_mod.py
changeset 5923 f39110afc039
parent 5915 d0576d065993
child 5928 3340aa5a64f7
equal deleted inserted replaced
5922:df7f66f290b9 5923:f39110afc039
   210                 tmpl = self.templater(req)
   210                 tmpl = self.templater(req)
   211                 if cmd == '':
   211                 if cmd == '':
   212                     req.form['cmd'] = [tmpl.cache['default']]
   212                     req.form['cmd'] = [tmpl.cache['default']]
   213                     cmd = req.form['cmd'][0]
   213                     cmd = req.form['cmd'][0]
   214 
   214 
   215                 if cmd == 'file' and 'raw' in req.form['style']:
   215                 if cmd == 'file' and 'raw' in req.form.get('style', []):
   216                     webcommands.rawfile(self, req, tmpl)
   216                     webcommands.rawfile(self, req, tmpl)
   217                 else:
   217                 else:
   218                     getattr(webcommands, cmd)(self, req, tmpl)
   218                     getattr(webcommands, cmd)(self, req, tmpl)
   219 
   219 
   220                 del tmpl
   220                 del tmpl