--- a/src/hgwebplus.py Fri Apr 10 18:50:13 2020 -0500
+++ b/src/hgwebplus.py Fri Apr 10 19:00:48 2020 -0500
@@ -98,10 +98,10 @@
compatibility but adds a lot of new features. This is not directly
wrapped, but is instead called from _diffsgen below, which is wrapped.
- This version provides additional details about each file. The filenames
- are in filea, and fileb; The line number that's being displayed for both
- filea and fileb are in linea and lineb. And finally the revision of
- each file is available in reva and revb.
+ This version provides additional details about each file. The + filenames are in filea, and fileb; The line number that's being + displayed for both filea and fileb are in linea and lineb. And finally + the revision of each file is available in reva and revb. @@ -113,7 +113,7 @@
- match = RE_DIFF.match(l)
+ match = RE_DIFF.match(l.decode('ascii')) @@ -226,7 +226,7 @@
args = (lines, blockno, lineidprefix, filea, reva, fileb, revb)
- l = templateutil.mappedgenerator(_prettyprintdifflines, args)
+ prettylines = templateutil.mappedgenerator(_prettyprintdifflines, args) if filea == b'/dev/null':
@@ -241,7 +241,7 @@
b'changetype': changetype,