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