mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
d225cb2910
Summary: This updates fastheaddiscovery to use an unfiltered repository when it attempts to check if the nodes the server sent are present locally. Reviewed By: quark-zju Differential Revision: D20792006 fbshipit-source-id: 14ba9605d79ba54f3f4143d6d8ec65357e3d8c07
54 lines
911 B
Perl
54 lines
911 B
Perl
#chg-compatible
|
|
|
|
$ disable treemanifest
|
|
$ 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 ..
|