mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
2bfb1f6996
Summary:
Enable the indent heuristic feature, since it provides nice visual
improvements for a wide range of cases. See the added test, and [1].
The only downside is it can slow things down. In a crafted case, this could
make `--indent-heuristic` several times slower than `--no-indent-heuristic`.
```
open('a', 'w').write(" \n" * 1000000)
open('b', 'w').write(" \n" * 1000001)
```
```
git diff --no-indent-heuristic a b 0.21s user 0.03s system 100% cpu 0.239 total
git diff --indent-heuristic a b 0.77s user 0.02s system 99% cpu 0.785 total
```
[1]:
|
||
---|---|---|
.. | ||
__init__.py | ||
base85.c | ||
bdiff.c | ||
charencode.c | ||
charencode.h | ||
diffhelpers.c | ||
dirs.c | ||
manifest.c | ||
mpatch.c | ||
osutil.c | ||
parsers.c | ||
pathencode.c | ||
README.md | ||
revlog.c | ||
util.h | ||
xdiff.c |
cext
Native code used by core Mercurial (not extensions), that depends on Python, lives here.
See also hgext/extlib/README.md
, lib/README.md
.