mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
090171ada4
This is a common technique to store variable-length integers efficiently. It's compatible with both Thrift and Protobuf [1]. It's intended to be used in: - On-disk file format to make the file compact and avoid issues like https://bz.mercurial-scm.org/5681 (Obsolete markers code crashes with metadata keys/values longer than 255 bytes). - Thrift layer. [1]: https://developers.google.com/protocol-buffers/docs/encoding#varints Test Plan: ``` cargo test cargo clippy ``` Also ran a kcov coverage check and it says 100%. ``` cargo rustc --lib --profile test -- -Ccodegen-units=1 -Clink-dead-code -Zno-landing-pads kcov --include-path $PWD/src --verify target/kcov ./target/debug/*-???????????????? ``` Differential Revision: https://phab.mercurial-scm.org/D929
22 lines
310 B
Plaintext
22 lines
310 B
Plaintext
syntax: regexp
|
|
^\.arcconfig
|
|
\.pyc$
|
|
\.o$
|
|
\.so$
|
|
\.err$
|
|
^build/
|
|
^.*\.egg-info/
|
|
^packages/
|
|
^dist/
|
|
^tests/getdb\.sh
|
|
^tests/report\.json
|
|
.idea
|
|
.testtimes*
|
|
^hgext3rd/.*\.c$
|
|
^hgext3rd/traceprof\.c.*$
|
|
^cdatapack/cdatapack_dump$
|
|
|
|
subinclude:cfastmanifest/.hgignore
|
|
subinclude:linelog/.hgignore
|
|
subinclude:rust/.hgignore
|