Commit Graph

2 Commits

Author SHA1 Message Date
Jun Wu
1a84c9d5db linelog: format the code using clang-format
Summary:
I didn't notice the test failure because clang-format was not installed.
Might be a good idea to make it a hard error.

Test Plan: Run test-check-clang-format.t

Reviewers: phillco, #mercurial

Reviewed By: phillco

Subscribers: mathieubaudet

Differential Revision: https://phabricator.intern.facebook.com/D6679576

Signature: 6679576:1515457526:6b1935858da284b896244b0d99e2fef03ead97b8
2018-01-08 16:22:30 -08:00
Jun Wu
1802036ff3 linelog: move to lib/ and mercurial/cyext
Summary:
The `lib/linelog` directory contains pure C code that is unrelated from
either Mercurial or Python. The `mercurial/cyext` contains Cython extension
code (although for linelog's case, the Cython extension is unrelated from
Mercurial).

Cython is now a hard dependence to simplify the code.

Test Plan: `make local` and check `from mercurial.cyext import linelog` works.

Reviewers: durham, #mercurial

Reviewed By: durham

Subscribers: durham, fried

Differential Revision: https://phabricator.intern.facebook.com/D6678541

Signature: 6678541:1515455512:967266dc69c702dbff95fdea05671e11c32ebf28
2018-01-08 14:35:01 -08:00