##// END OF EJS Templates
py3: use .startswith() instead of bytes[0]...
Pulkit Goyal -
r42635:c1bf63ac default
parent child Browse files
Show More
@@ -871,7 +871,7 def _parsechunk(hunk):
871 871 patchlines = mdiff.splitnewlines(buf.getvalue())
872 872 # hunk.prettystr() will update hunk.removed
873 873 a2 = a1 + hunk.removed
874 blines = [l[1:] for l in patchlines[1:] if l[0] != '-']
874 blines = [l[1:] for l in patchlines[1:] if not l.startswith('-')]
875 875 return path, (a1, a2, blines)
876 876
877 877 def overlaydiffcontext(ctx, chunks):
General Comments 0
You need to be logged in to leave comments. Login now