mercurial/hgweb/webutil.py
changeset 50916 98b8836d0e82
parent 50580 f30ce3558c2b
child 50928 d718eddf01d9
equal deleted inserted replaced
50915:d8c8a923ee9b 50916:98b8836d0e82
   228 def difffeatureopts(req, ui, section):
   228 def difffeatureopts(req, ui, section):
   229     diffopts = diffutil.difffeatureopts(
   229     diffopts = diffutil.difffeatureopts(
   230         ui, untrusted=True, section=section, whitespace=True
   230         ui, untrusted=True, section=section, whitespace=True
   231     )
   231     )
   232 
   232 
   233     for k in (
   233     for kb, ks in (
   234         b'ignorews',
   234         (b'ignorews', 'ignorews'),
   235         b'ignorewsamount',
   235         (b'ignorewsamount', 'ignorewsamount'),
   236         b'ignorewseol',
   236         (b'ignorewseol', 'ignorewseol'),
   237         b'ignoreblanklines',
   237         (b'ignoreblanklines', 'ignoreblanklines'),
   238     ):
   238     ):
   239         v = req.qsparams.get(k)
   239         v = req.qsparams.get(kb)
   240         if v is not None:
   240         if v is not None:
   241             v = stringutil.parsebool(v)
   241             v = stringutil.parsebool(v)
   242             setattr(diffopts, k, v if v is not None else True)
   242             setattr(diffopts, ks, v if v is not None else True)
   243 
   243 
   244     return diffopts
   244     return diffopts
   245 
   245 
   246 
   246 
   247 def annotate(req, fctx, ui):
   247 def annotate(req, fctx, ui):