D3211: patch: buffer lines for a same hunk

2018-04-16 Thread quark (Jun Wu)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG5471348921c1: patch: buffer lines for a same hunk (authored by quark, committed by ). CHANGED PRIOR TO COMMIT https://phab.mercurial-scm.org/D3211?vs=7923&id=8334#toc REPOSITORY rHG Mercurial CHANG

D3211: patch: buffer lines for a same hunk

2018-04-10 Thread yuja (Yuya Nishihara)
yuja requested changes to this revision. yuja added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > patch.py:2484 > +stripline = chompline.rstrip() > +if line[0] == '-': > +label = 'diff.deleted' Don't use `bytes[n]` since it returns

D3211: patch: buffer lines for a same hunk

2018-04-09 Thread quark (Jun Wu)
quark created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Instead of yielding tokens directly, buffer them if they belong to a same hunk. This makes it easier for the upcoming new worddiff algorithm to only focus on the d