mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
551e557862
Summary: Makes more sense to have this structure after D6691821. Test Plan: Ran all the tests. Reviewers: quark, #mercurial, #sourcecontrol Reviewed By: quark Differential Revision: https://phabricator.intern.facebook.com/D6694171 Signature: 6694171:1515609818:1142419346e3458db7674b1b69036d88e82a1903
29 lines
641 B
Perl
29 lines
641 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 infinitepush 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, infinitepush backup logging will be disabled
|
|
$ waitbgbackup
|