mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
A Scalable, User-Friendly Source Control System.
5b5e3cbc59
Summary: The recently added test `rotate::tests::test_lookup_rotated` assumes that the `meta` file in log directories are removed by `try_remove_old_logs`, because the `meta` file is not opened by the library and is deletable. However, `try_remove_old_logs` fails to remove `meta`, because it can fail early trying to remove other files, and skips removing `meta`. Fix it by always trying to delete `meta` first. This fixes multiple things: - `rotate::tests::test_lookup_rotated` now passes on Windows. - `RotateLog::load_log` no longer races with `try_remove_old_logs`. As we're here, also make sure `try_remove_old_logs` is protected by a lock. Reviewed By: sfilipco Differential Revision: D17817355 fbshipit-source-id: 10c0e942807694e4f6b395afe140004ace20b598 |
||
---|---|---|
CMake | ||
contrib | ||
distutils_rust | ||
doc | ||
edenscm | ||
edenscmnative | ||
exec | ||
i18n | ||
lib | ||
newdoc | ||
slides | ||
tests | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
.hgsigs | ||
.jshintrc | ||
CMakeLists.txt | ||
CONTRIBUTING | ||
CONTRIBUTORS | ||
COPYING | ||
gen_version.py | ||
hgeditor | ||
hgweb.cgi | ||
Makefile | ||
README.rst | ||
setup.py |
Mercurial ========= Mercurial is a fast, easy to use, distributed revision control tool for software developers. Basic install:: $ make # see install targets $ make install # do a system-wide install $ hg debuginstall # sanity-check setup $ hg # see help Running without installing:: $ make local # build for inplace usage $ ./hg --version # should show the latest version See https://mercurial-scm.org/ for detailed installation instructions, platform-specific notes, and Mercurial user information.