comparison mercurial/hgweb/webcommands.py @ 34403:407ebe7a9b93

hgweb: use parsebool for parsing diff query string options Differential Revision: https://phab.mercurial-scm.org/D875
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 01 Oct 2017 12:29:33 +0100
parents 6797f1fbc642
children 2e32c6a31cc7
comparison
equal deleted inserted replaced
34402:689f6cdccef5 34403:407ebe7a9b93
863 863
864 Show changeset information for each line in a file. 864 Show changeset information for each line in a file.
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. A value of ``0`` sets the 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 """
874 fctx = webutil.filectx(web.repo, req) 875 fctx = webutil.filectx(web.repo, req)
875 f = fctx.path() 876 f = fctx.path()