Mercurial > hg
diff tests/test-narrow-strip.t @ 36084:dc01484606da
tests: fold narrow treemanifest tests into main test file using testcases
These tests predate the testcases functionality in run-tests.py, so it
was never done in narrowhg.
Differential Revision: https://phab.mercurial-scm.org/D1979
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 01 Feb 2018 17:19:41 -0500 |
parents | a2a6e724d61a |
children | 66d478064d5f |
line wrap: on
line diff
--- a/tests/test-narrow-strip.t Mon Jan 29 18:16:23 2018 -0500 +++ b/tests/test-narrow-strip.t Thu Feb 01 17:19:41 2018 -0500 @@ -1,6 +1,14 @@ +#testcases flat tree $ . "$TESTDIR/narrow-library.sh" +#if tree + $ cat << EOF >> $HGRCPATH + > [experimental] + > treemanifest = 1 + > EOF +#endif + create full repo $ hg init master @@ -71,8 +79,10 @@ o 0 initial $ hg debugdata -m 1 - inside/f1\x004d6a634d5ba06331a60c29ee0db8412490a54fcd (esc) - outside/f1\x0084ba604d54dee1f13310ce3d4ac2e8a36636691a (esc) + inside/f1\x004d6a634d5ba06331a60c29ee0db8412490a54fcd (esc) (flat !) + outside/f1\x0084ba604d54dee1f13310ce3d4ac2e8a36636691a (esc) (flat !) + inside\x006a8bc41df94075d501f9740587a0c0e13c170dc5t (esc) (tree !) + outside\x00255c2627ebdd3c7dcaa6945246f9b9f02bd45a09t (esc) (tree !) $ rm -f $TESTTMP/narrow/.hg/strip-backup/*-backup.hg $ hg strip . @@ -94,8 +104,10 @@ Check that hash of file outside narrow spec got restored $ hg debugdata -m 2 - inside/f1\x004d6a634d5ba06331a60c29ee0db8412490a54fcd (esc) - outside/f1\x0084ba604d54dee1f13310ce3d4ac2e8a36636691a (esc) + inside/f1\x004d6a634d5ba06331a60c29ee0db8412490a54fcd (esc) (flat !) + outside/f1\x0084ba604d54dee1f13310ce3d4ac2e8a36636691a (esc) (flat !) + inside\x006a8bc41df94075d501f9740587a0c0e13c170dc5t (esc) (tree !) + outside\x00255c2627ebdd3c7dcaa6945246f9b9f02bd45a09t (esc) (tree !) Also verify we can apply the bundle with 'hg pull': $ hg co -r 'desc("modify inside")' @@ -125,14 +137,17 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: initial - changeset: 1:9e48d953700d + changeset: 1:9e48d953700d (flat !) + changeset: 1:3888164bccf0 (tree !) user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: modify outside again - changeset: 2:f505d5e96aa8 + changeset: 2:f505d5e96aa8 (flat !) + changeset: 2:40b66f95a209 (tree !) tag: tip - parent: 0:a99f4d53924d + parent: 0:a99f4d53924d (flat !) + parent: 0:c2a5fabcca3c (tree !) user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: modify inside