sapling/hgext/extlib
Liubov Dmitrieva ddaab68bd5 treedirstate: bugfix
Summary:
treedirstate: bugfix

Incorrect usage of write function that can cause corrupted files in some cases.

Write doen't guarantee all data will be written. Function write_all should be used instead.

https://doc.rust-lang.org/1.0.0/std/io/trait.Write.html#tymethod.write

See: It is not considered an error if the entire buffer could not be written to this writer.

Function returns number of bytes written.

Reviewed By: markbt

Differential Revision: D6883057

fbshipit-source-id: 4bc18cc9fa6e5db0ae8516d67dd6ba92c1facf21
2018-04-13 21:51:01 -07:00
..
cfastmanifest hg: build cstore and cfastmanifest with buck 2018-04-13 21:51:00 -07:00
cstore merge in datapack fixes from eden 2018-04-13 21:50:57 -07:00
ctreemanifest cstore: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00
indexes build: vendor in Rust dependencies 2018-01-09 17:48:32 -08:00
phabricator hg: fix import statements that cause HGDEMANDIMPORT=disable 2018-01-12 12:20:29 -08:00
treedirstate treedirstate: bugfix 2018-04-13 21:51:01 -07:00
__init__.py fb-hgext: integrate rust libraries and extensions with setup.py 2018-01-08 15:26:24 -08:00
cfastmanifest.c hg: build cstore and cfastmanifest with buck 2018-04-13 21:51:00 -07:00
linelog.pyx hg: basic support for building hg using buck 2018-04-13 21:50:58 -07:00
litemmap.pyx basepack: workaround Python's mmap fd limit 2018-04-13 21:51:00 -07:00
README.md READMEs: tweaks based on feedback 2018-01-12 12:35:52 -08:00
traceprofimpl.cpp traceprof: move to hgext and make it more portable 2018-01-08 17:45:51 -08:00

extlib

Code that extensions depend on, but aren't themselves extensions, should go here. Both native (C/C++/Cython/Rust) and Python code is allowed. Code that depends on Python is also allowed.

In theory, this code should slowly disappear as extension code gets folded into mainline Mercurial. (The native bits should go into lib/ or mercurial/cext), the Python code into mercurial/ itself.)

See also lib/README.md, mercurial/cext/README.md.