sapling/mercurial/hgweb
Gregory Szorc 0ed01b356d hgweb: query string arguments to control whitespace for annotate
This feature should hopefully be pretty straightforward. We simply
examine some query string arguments to feed into the diff options.

The function to obtain the diff options has been factored into its
own generic function to facilitate an upcoming change to the HTML
interface and to enable diff settings to be controlled via the same
query string arguments on other web commands.

The test output for "ignoreblanklines" didn't change. I'm not sure
why. Our test coverage for --ignore-blank-lines isn't great and I
can't figure out how to make this diff setting do anything meaningful.
On a very brief examination of the code, it is possible the setting
doesn't work because it is operating at the line level and blank lines
detection needs to examine multiple lines. But I'm not an expert in
this code, so I'm not sure.

Differential Revision: https://phab.mercurial-scm.org/D849
2017-09-30 09:08:01 +01:00
..
__init__.py server: move service factory from hgweb 2016-10-15 14:09:36 +09:00
common.py python3: wrap all uses of <exception>.strerror with strtolocal 2017-08-22 20:03:07 -04:00
hgweb_mod.py configitems: register the 'web.stripes' config 2017-06-30 03:45:51 +02:00
hgwebdir_mod.py py3: remove use of str() in hgwebdir 2017-09-27 19:04:32 +09:00
protocol.py httppeer: add support for httppostargs when we're sending a file 2017-07-26 17:58:19 -04:00
request.py hgweb: use absolute_import 2015-10-31 22:07:40 +09:00
server.py hgweb: remove superfluous pass statements 2017-09-30 07:44:20 -04:00
webcommands.py hgweb: query string arguments to control whitespace for annotate 2017-09-30 09:08:01 +01:00
webutil.py hgweb: query string arguments to control whitespace for annotate 2017-09-30 09:08:01 +01:00
wsgicgi.py py3: replace os.environ with encoding.environ (part 3 of 5) 2016-12-18 01:54:36 +05:30