sapling/eden/scm/tests/test-remotenames-fastheaddiscovery-hidden-commits.t
Durham Goode 9473b487b5 tests: enable treemanifest for ~100 more tests
Summary:
Enables treemanifest for about 100 more tests. To make them pass I had
to expose the gettreepack capability from peers, which just works, and enable
treeonly and sendtrees by default in the tests, which I probably should've done
before anyway.

Reviewed By: quark-zju

Differential Revision: D21894955

fbshipit-source-id: 7a6a4d453824fb8c81a797a5487bf2ecc2b67761
2020-06-10 19:29:48 -07:00

53 lines
886 B
Perl

#chg-compatible
$ enable remotenames
$ enable amend
$ setconfig remotenames.fastheaddiscovery=True
Set up repositories
$ hg init repo1
$ hg clone -q repo1 repo2
$ hg clone -q repo1 repo3
Set up the repos with a remote bookmark
$ cd repo2
$ echo a > a
$ hg commit -Aqm commitA
$ hg push -q --to book --create
$ cd ..
$ cd repo3
$ hg pull -q -B book
$ cd ..
Produce a new commit in repo2
$ cd repo2
$ echo b > b
$ hg commit -Aqm commitB
$ hg bundle -q -r . ../bundleB
$ hg push -q --to book
$ cd ..
Load the commit in repo3, hide it, check that we can still pull.
$ cd repo3
$ hg unbundle -q ../bundleB
$ hg log -r tip -T '{desc}\n'
commitB
$ hg hide -q -r tip
$ hg update -q default/book
$ hg log -r tip -T '{desc}\n'
commitA
$ hg pull -q
$ hg log -r "reverse(::book)" -T '{desc}\n'
commitB
commitA
$ cd ..