This will be useful in particular to avoid going through the Python interpreter
in native Rust functions.
Details
Details
- Reviewers
indygreg Alphare - Group Reviewers
hg-reviewers - Commits
- rHGe633e660158f: revlog: implement fast_rank retrieval in C
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
mercurial/cext/revlog.c | ||
---|---|---|
584–588 | I _think_ our clang-format policy requires braces around if. I could be wrong. But, I personally prefer we always use if { to avoid bugs. | |
3280 | This version (and its reference in the Python code I believe) needs to be incremented to 3 since a field was added to Revlog_CAPI. |
mercurial/cext/revlog.c | ||
---|---|---|
584–588 | It does not, but I agree that this is easily prone to bugs. |
I _think_ our clang-format policy requires braces around if. I could be wrong. But, I personally prefer we always use if { to avoid bugs.