mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
6945873500
Summary: Repos like pytorch uses nested submodules, and same dependency can appear in different nested submodules. For example, `pybind11` has 4 copies: pytorch-git/.git % find | grep 'pybind11$' ./modules/third_party/onnx/modules/third_party/pybind11 ./modules/third_party/onnx-tensorrt/modules/third_party/onnx/modules/third_party/pybind11 ./modules/third_party/pybind11 ./modules/third_party/tensorpipe/modules/third_party/pybind11 Practically, this reduces pytorch's `.hg/store/gitmodules` size from 506MB to 442MB. Note the git version of `.git/modules` takes 862MB. That might be caused by git fetching `HEAD` or the `branch` config specified in `.gitmodules` instead of just fetching the commit needed to checkout submodules. Clonging them in different places is a waste of space. Let's make nested repos with same URLs share a same backing repo. Reviewed By: DurhamG Differential Revision: D33518828 fbshipit-source-id: 1c091bf41c263d701eecdc266ba49723b3ad5eec |
||
---|---|---|
.. | ||
contrib | ||
distutils_rust | ||
doc | ||
edenscm | ||
edenscmnative | ||
exec | ||
hgcache_size_logger | ||
i18n | ||
lib | ||
newdoc | ||
pystubs | ||
slides | ||
tests | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
.rustfmt.toml | ||
COPYING | ||
fsprobe.sh | ||
gen_version.py | ||
hgeditor | ||
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.