sapling/eden/scm/tests/test-crdump-commitcloud.t
Durham Goode 490468403b treemanifest: fix bundle usage with Rust contentstore
Summary:
The rust contentstore doesn't allow runtime manipulation of the list of
stores, which is required in order to insert the bundle store into the store.
Let's continue using the old python union store in these cases. This still let's
us delete the python pack code later, but we'll have to keep around the python
union store until we come up with a better solution.

Reviewed By: quark-zju

Differential Revision: D23689630

fbshipit-source-id: 0c60e6f268e81804149afa24409f64b5303e1e34
2020-09-24 09:46:59 -07:00

36 lines
1.0 KiB
Perl

#chg-compatible
$ . "$TESTDIR/library.sh"
$ . "$TESTDIR/infinitepush/library.sh"
$ setupcommon
$ enable crdump remotenames
$ setconfig crdump.commitcloud=true
Setup server
$ hg init repo
$ cd repo
$ setupserver
$ cd ../
$ hg clone ssh://user@dummy/repo client -q
$ cd client
$ echo a >> a
$ hg commit -Aqm "added a" --config infinitepushbackup.autobackup=False
commit_cloud should be false when commitcloud is broken
$ hg debugcrdump -r . --config paths.default=xxxxx | grep commit_cloud
"commit_cloud": false,
debugcrdump should upload the commit and commit_cloud should be true when
commitcloud is working
$ hg debugcrdump -r . | grep commit_cloud
remote: pushing 1 commit:
remote: 9092f1db7931 added a
"commit_cloud": true,
debugcrdump should not attempt to access the network if the commit was
previously backed up (as shown by the lack of error when given a faulty path)
$ hg debugcrdump -r . --config ui.ssh=false | grep commit_cloud
"commit_cloud": true,