sapling/eden/scm/tests/test-commitcloud-backup-compression.t
Jun Wu 75a8173a10 tests: enable chg for 572 tests
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
2019-12-09 15:26:29 -08:00

30 lines
784 B
Raku

#chg-compatible
$ . "$TESTDIR/library.sh"
$ . "$TESTDIR/infinitepush/library.sh"
$ setupcommon
$ setconfig infinitepush.bundlecompression=GZ
Setup server
$ hg init repo
$ cd repo
$ setupserver
$ cd ..
Backup a commit
$ hg clone ssh://user@dummy/repo client -q
$ cd client
$ mkcommit commit
$ hg cloud backup
backing up stack rooted at 7e6a6fd9c7c8
remote: pushing 1 commit:
remote: 7e6a6fd9c7c8 commit
commitcloud: backed up 1 commit
Check the commit is compressed
$ f=`cat ../repo/.hg/scratchbranches/index/nodemap/7e6a6fd9c7c8c8c307ee14678f03d63af3a7b455`
$ hg debugbundle ../repo/.hg/scratchbranches/filebundlestore/*/*/$f
Stream params: {Compression: GZ}
changegroup -- {version: 02}
7e6a6fd9c7c8c8c307ee14678f03d63af3a7b455