mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
5bac1b4598
Summary: This is needed to keep Ids topologically sorted. This is reflected in the test added by D18641507, when assigning master ids to `I`: ``` 0---1---2---3---4---5---6--------H---I \ \ / N0-N1-N2-N3 N4-N5-N6-o \ \ -------------N7--N8 Lv0: R0-1[] 2-3[1] 4-6[3] N0-N1[1] N2-N3[N1] N4-N6[5] N7-N8[N3, N6] Lv1: R0-3[] 4-6[3] N0-N1[1] N2-N3[N1] N4-N8[5, N3] Lv2: R0-6[] N0-N3[1] N4-N8[5, N3] ``` Note: 0, 1, 2, ... are ids in the master group. N0, N1, ... are ids in the non-master group. ``` 0---1---2---3---4---5---6--------11--12 \ \ / N0-N1-N2-N3 7--8--9--10 \ \ -------------N7--N8 Lv0: R0-1[] 2-3[1] 4-6[3] 7-10[5] 11-12[6, 10] N0-N1[1] N2-N3[N1] N4-N6[5] N7-N8[N3, N6] Lv1: R0-3[] 4-6[3] 7-12[5, 6] N0-N1[1] N2-N3[N1] N4-N8[5, N3] Lv2: R0-6[] 7-12[5, 6] N0-N3[1] N4-N8[5, N3] Lv3: R0-12[] N0-N8[1, 5] ``` Notice that 7, 8, 9 replace the old non-master ids N4, N5, N6. Without this change, N4, N5, N6 will be kept and break the topo-sorted property. An `ensure!` was added to make sure Ids are topo-sorted. Reviewed By: sfilipco Differential Revision: D18641510 fbshipit-source-id: bbe642df3615c65db7f2e7c889624e00e53ef7ba |
||
---|---|---|
.. | ||
contrib | ||
distutils_rust | ||
doc | ||
edenscm | ||
edenscmnative | ||
exec | ||
i18n | ||
lib | ||
newdoc | ||
slides | ||
tests | ||
.editorconfig | ||
.flake8 | ||
.gitignore | ||
COPYING | ||
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.