mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
e41d5cd495
Summary: Our current `hg pull` in production typically shows: % hg pull pulling from mononoke://... connected to ... session ... imported commit graph for ... commits (1 segment) There is no "added x changesets ..." message. Drop it from tests. This also makes it easier to migrate tests to remotefilelog repos, since with remotefilelog it will show "0 changes to 0 files". Differential Revision: D32570597 fbshipit-source-id: aa660e2cbd9bc07caa74f0126e152589b08e5c57
76 lines
2.0 KiB
Perl
76 lines
2.0 KiB
Perl
#chg-compatible
|
|
$ setconfig experimental.allowfilepeer=True
|
|
|
|
$ enable infinitepush remotefilelog remotenames schemes treemanifest
|
|
$ . "$TESTDIR/library.sh"
|
|
|
|
$ mkcommit() {
|
|
> echo "$1" > "$1"
|
|
> hg add "$1"
|
|
> hg ci -m "$1"
|
|
> }
|
|
|
|
$ newserver server
|
|
$ cd ..
|
|
|
|
$ newremoterepo client1
|
|
$ cat >> .hg/hgrc << EOF
|
|
> [paths]
|
|
> default = dotdot://server
|
|
> default-push = push://server
|
|
> normal-path = mononoke://mononoke.internal.tfbnw.net/server
|
|
> [remotefilelog]
|
|
> fallbackpath = fallback://server
|
|
> [schemes]
|
|
> dotdot = ssh://user@dummy/{1}
|
|
> fallback = ssh://user@dummy/{1}
|
|
> fb-test = mononoke://mononoke.internal.tfbnw.net/{1}
|
|
> i = ssh://user@dummy/{1}
|
|
> iw = ssh://user@dummy/{1}
|
|
> push = ssh://user@dummy/{1}
|
|
> z = file:\$PWD/
|
|
> EOF
|
|
$ setconfig infinitepush.branchpattern="re:scratch/.+"
|
|
|
|
test converting debug output for all paths
|
|
|
|
$ hg debugexpandpaths
|
|
paths.default=ssh://user@dummy/server (expanded from dotdot://server)
|
|
paths.default-push=ssh://user@dummy/server (expanded from push://server)
|
|
paths.normal-path=mononoke://mononoke.internal.tfbnw.net/server (not expanded)
|
|
|
|
check that paths are expanded
|
|
|
|
check that debugexpandscheme outputs the canonical form
|
|
|
|
$ hg debugexpandscheme fb-test://opsfiles
|
|
mononoke://mononoke.internal.tfbnw.net/opsfiles
|
|
|
|
expanding an unknown scheme emits the input
|
|
|
|
$ hg debugexpandscheme foobar://this/that
|
|
foobar://this/that
|
|
|
|
$ mkcommit foobar
|
|
$ hg push --create --to master
|
|
pushing rev 582ab9cb184e to destination push://server/ bookmark master
|
|
searching for changes
|
|
exporting bookmark master
|
|
remote: adding changesets
|
|
remote: adding manifests
|
|
remote: adding file changes
|
|
|
|
$ mkcommit something
|
|
$ hg push -r . --to scratch/test123 --create
|
|
pushing to push://server/
|
|
searching for changes
|
|
remote: pushing 1 commit:
|
|
remote: 6e16a5f9c216 something
|
|
|
|
$ hg pull -r 6e16a5f9c216
|
|
pulling from dotdot://server/
|
|
no changes found
|
|
adding changesets
|
|
adding manifests
|
|
adding file changes
|