mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
75a8173a10
Summary: Add `#chg-compatible` to 572 tests that seem to pass with chg enabled. This should make them run faster. Reviewed By: xavierd Differential Revision: D18870507 fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
41 lines
1.1 KiB
Perl
41 lines
1.1 KiB
Perl
#chg-compatible
|
|
|
|
$ . "$TESTDIR/library.sh"
|
|
$ . "$TESTDIR/infinitepush/library.sh"
|
|
$ setupcommon
|
|
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> crdump=
|
|
> remotenames=
|
|
> [crdump]
|
|
> commitcloud=True
|
|
> EOF
|
|
|
|
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,
|