sapling/eden/scm/tests/test-perftweaks-remotenames.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

43 lines
1.1 KiB
Perl

#chg-compatible
$ configure dummyssh
$ enable tweakdefaults remotenames rebase
$ hg init master
$ cd master
$ echo a >> a && hg ci -Aqm a
$ hg book master
$ hg book -i
$ echo b >> b && hg ci -Aqm b
$ hg book foo
$ cd ..
$ hg clone ssh://user@dummy/master client -r 0
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Verify pulling only some commits does not cause errors from the unpulled
remotenames
$ cd client
$ hg pull -r 0
pulling from ssh://user@dummy/master
no changes found
$ hg book --remote
default/master 0:cb9a9f314b8b
$ hg dbsh -c 'ui.write(repo.svfs.readutf8("remotenames"))'
cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b bookmarks default/master
$ hg pull --rebase -d master
pulling from ssh://user@dummy/master
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
nothing to rebase - working directory parent is also destination