# HG changeset patch # User Denis Laxalde # Date 1492070649 -7200 # Node ID 7a3fc3f3e89a7193a557e47fbe0563cac38c4c92 # Parent 6c08dfd19e0b8c0797aba033c3cc1e3721d8bdfe gitweb: handle "patch" query parameter in filelog view As for paper style, in f36dc643ffdc, we display "diff" data as an additional row in the table of revision entries for the gitweb template. Also, as these additional diff rows have a white background, they may be confused with log entry rows ("age", "author", "description", "links") of even parity (parity0 also have a white background). So we disable parity colors for log entry rows when diff is displayed and fix the color to the "dark" parity (i.e. parity1 #f6f6f0) so that it's always distinguishable from diff -r 6c08dfd19e0b -r 7a3fc3f3e89a mercurial/templates/gitweb/map --- a/mercurial/templates/gitweb/map Thu Apr 13 09:59:58 2017 +0200 +++ b/mercurial/templates/gitweb/map Thu Apr 13 10:04:09 2017 +0200 @@ -282,7 +282,7 @@ ' filelogentry = ' - + {date|rfc822date} {author|person} @@ -297,7 +297,8 @@ annotate {rename%filelogrename} - ' + + {if(patch, '{diff}')}' archiveentry = ' | {type|escape} ' indexentry = '