mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
ad813edcbd
Summary: Now that all our repos are treemanifest, let's enable the extension by default in tests. Once we're certain no one needs it in production we'll also make it the default in core Mercurial. This diff includes a minor fix in treemanifest to be aware of always-enabled extensions. It won't matter until we actually add treemanifest to the list of default enabled extensions, but I caught this while testing things. Reviewed By: ikostia Differential Revision: D15030253 fbshipit-source-id: d8361f915928b6ad90665e6ed330c1df5c8d8d86
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/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
|