Show More
@@ -865,9 +865,10 b' def annotate(web, req, tmpl):' | |||
|
865 | 865 | |
|
866 | 866 | The ``ignorews``, ``ignorewsamount``, ``ignorewseol``, and |
|
867 | 867 | ``ignoreblanklines`` query string arguments have the same meaning as |
|
868 |
their ``[annotate]`` config equivalents. |
|
|
869 | whitespace option to false. All other values are true. If not defined, | |
|
870 | the server default settings are used. | |
|
868 | their ``[annotate]`` config equivalents. It uses the hgrc boolean | |
|
869 | parsing logic to interpret the value. e.g. ``0`` and ``false`` are | |
|
870 | false and ``1`` and ``true`` are true. If not defined, the server | |
|
871 | default settings are used. | |
|
871 | 872 | |
|
872 | 873 | The ``fileannotate`` template is rendered. |
|
873 | 874 | """ |
@@ -177,12 +177,8 b' def difffeatureopts(req, ui, section):' | |||
|
177 | 177 | for k in ('ignorews', 'ignorewsamount', 'ignorewseol', 'ignoreblanklines'): |
|
178 | 178 | v = req.form.get(k, [None])[0] |
|
179 | 179 | if v is not None: |
|
180 | try: | |
|
181 | v = bool(int(v)) | |
|
182 | except ValueError: | |
|
183 | v = True | |
|
184 | ||
|
185 | setattr(diffopts, k, v) | |
|
180 | v = util.parsebool(v) | |
|
181 | setattr(diffopts, k, v if v is not None else True) | |
|
186 | 182 | |
|
187 | 183 | return diffopts |
|
188 | 184 |
General Comments 0
You need to be logged in to leave comments.
Login now