D2576: xdiff: add a python wrapper

2018-03-03 Thread quark (Jun Wu)
quark commandeered this revision. quark added a reviewer: ryanmce. quark added a comment. Not going to add another module. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2576 To: quark, #hg-reviewers, ryanmce Cc: durin42, quark, mercurial-devel _

D2576: xdiff: add a python wrapper

2018-03-03 Thread durin42 (Augie Fackler)
durin42 added inline comments. INLINE COMMENTS > setup.py:223 > # import py2exe's patched Distribution class > -from distutils.core import Distribution > +from distutils.core import Distribution # noqa: F811 > except ImportError: wat? REPOSITORY rHG Mercurial REVISION DETAIL

D2576: xdiff: add a python wrapper

2018-03-02 Thread quark (Jun Wu)
quark added a comment. Traditionally things under `mercurial.cext` has a pure equivalent. So it's cleaner to either make the changes directly in `mercurial.cext.bdiff`, or `mercurial/bdiff.c`. Or add a xdiff pure shim. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.

D2576: xdiff: add a python wrapper

2018-03-02 Thread ryanmce (Ryan McElroy)
ryanmce created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Implement a `mercurial.cext.xdiff` module that exposes the xdiff algorithm. `xdiff.blocks` should be a drop-in replacement for `bdiff.blocks`. In theory we