##// END OF EJS Templates
hgweb: use sysstr to set attribute on diff option...
marmoute -
r51809:98b8836d default
parent child Browse files
Show More
@@ -230,16 +230,16 b' def difffeatureopts(req, ui, section):'
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
General Comments 0
You need to be logged in to leave comments. Login now