mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
bbd4b91102
Summary: In the future the changelog would need to access 'remotenames' to figure out public heads. Move the state file to svfs so it can be read by the changelog object, which only has access to svfs. Reviewed By: sfilipco Differential Revision: D17199834 fbshipit-source-id: 9000e0d8e8bb8d398d6c77b5b395da904fef6418
50 lines
1.2 KiB
Perl
50 lines
1.2 KiB
Perl
$ setconfig extensions.treemanifest=!
|
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [ui]
|
|
> ssh=python "$TESTDIR/dummyssh"
|
|
> [extensions]
|
|
> tweakdefaults=
|
|
> remotenames=
|
|
> rebase=
|
|
> EOF
|
|
|
|
$ 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
|
|
new changesets cb9a9f314b8b
|
|
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
|
|
$ cat .hg/store/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
|
|
new changesets d2ae7f538514
|
|
nothing to rebase - working directory parent is also destination
|