changeset 31704 | cbe0bea82c79 |
parent 31666 | aaebc80c9f1d |
child 31727 | 6be6e4becaaf |
--- a/mercurial/hgweb/webutil.py Sat Mar 25 11:30:08 2017 +0100 +++ b/mercurial/hgweb/webutil.py Wed Mar 29 12:07:07 2017 +0200 @@ -473,7 +473,7 @@ if linerange is not None and hunkrange is not None: s1, l1, s2, l2 = hunkrange lb, ub = linerange - if not (lb <= s2 < ub or lb < s2 + l2 <= ub): + if not (lb < s2 + l2 and ub > s2): continue lines.extend(hunklines) if lines: