mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
5180dd5cf2
Summary: Split the infinitepush backups code into a separate module. The infinitepush extension is responsible for providing scratch pushes, as well as the server-side implementation for storing scratch bundles. The infinitepushbackup extension uses this feature to provide automatic backup support. It is an alternative to the commitcloud extension, and the two will be mutually exclusive. Reviewed By: DurhamG Differential Revision: D8204418 fbshipit-source-id: 9279c426da35d451a5e7b39a72f2c91d364e3fd4
29 lines
637 B
Perl
29 lines
637 B
Perl
|
|
$ . "$TESTDIR/library.sh"
|
|
$ . "$TESTDIR/infinitepush/library.sh"
|
|
$ setupcommon
|
|
|
|
Setup server
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ setupserver
|
|
$ cd ..
|
|
|
|
Clone
|
|
$ hg clone ssh://user@dummy/repo client -q
|
|
$ cd client
|
|
|
|
Create log dir
|
|
$ mkdir $TESTTMP/logs
|
|
|
|
Setup background backup logging
|
|
$ printf "\n[infinitepushbackup]\nlogdir=$TESTTMP/logs" >> .hg/hgrc
|
|
$ mkcommit first
|
|
|
|
Check that logging fails because of wrong permissions
|
|
$ hg pushbackup --background
|
|
$ waitbgbackup
|
|
$ hg pushbackup --background --debug
|
|
$TESTTMP/logs directory has incorrect permission, background backup logging will be disabled
|
|
$ waitbgbackup
|