Mercurial > hg
comparison tests/test-largefiles.t @ 15778:f15c646bffc7
author | Kevin Gessner <kevin@fogcreek.com> |
---|---|
date | Thu, 05 Jan 2012 07:26:22 -0800 |
parents | 65df60a3f96b |
children | 3fe39d6d2bd8 |
comparison
equal
deleted
inserted
replaced
15777:12309c09d19a | 15778:f15c646bffc7 |
---|---|
1 $ "$TESTDIR/hghave" symlink unix-permissions serve || exit 80 | 1 $ "$TESTDIR/hghave" symlink unix-permissions serve || exit 80 |
2 | 2 |
3 $ USERCACHE=`pwd`/cache; export USERCACHE | |
4 $ mkdir -p ${USERCACHE} | |
3 $ cat >> $HGRCPATH <<EOF | 5 $ cat >> $HGRCPATH <<EOF |
4 > [extensions] | 6 > [extensions] |
5 > largefiles= | 7 > largefiles= |
6 > purge= | 8 > purge= |
7 > rebase= | 9 > rebase= |
9 > [phases] | 11 > [phases] |
10 > publish=False | 12 > publish=False |
11 > [largefiles] | 13 > [largefiles] |
12 > minsize=2 | 14 > minsize=2 |
13 > patterns=glob:**.dat | 15 > patterns=glob:**.dat |
16 > usercache=${USERCACHE} | |
14 > EOF | 17 > EOF |
15 | 18 |
16 Create the repo with a couple of revisions of both large and normal | 19 Create the repo with a couple of revisions of both large and normal |
17 files, testing that status correctly shows largefiles. | 20 files, testing that status correctly shows largefiles. |
18 | 21 |
822 searching for changes | 825 searching for changes |
823 abort: http://localhost:$HGPORT/ does not appear to be a largefile store | 826 abort: http://localhost:$HGPORT/ does not appear to be a largefile store |
824 [255] | 827 [255] |
825 $ cd .. | 828 $ cd .. |
826 | 829 |
830 putlfile errors are shown (issue3123) | |
831 Corrupt the cached largefile in r7 | |
832 $ echo corruption > $USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8 | |
833 $ hg init empty | |
834 $ hg serve -R empty -d -p $HGPORT1 --pid-file hg.pid \ | |
835 > --config 'web.allow_push=*' --config web.push_ssl=False | |
836 $ cat hg.pid >> $DAEMON_PIDS | |
837 $ hg push -R r7 http://localhost:$HGPORT1 | |
838 pushing to http://localhost:$HGPORT1/ | |
839 searching for changes | |
840 remote: largefiles: failed to put 4cdac4d8b084d0b599525cf732437fb337d422a8 into store: largefile contents do not match hash | |
841 abort: remotestore: could not put $TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 to remote store http://localhost:$HGPORT1/ | |
842 [255] | |
843 $ rm -rf empty | |
844 | |
827 Clone a local repository owned by another user | 845 Clone a local repository owned by another user |
828 We have to simulate that here by setting $HOME and removing write permissions | 846 We have to simulate that here by setting $HOME and removing write permissions |
829 $ ORIGHOME="$HOME" | 847 $ ORIGHOME="$HOME" |
830 $ mkdir alice | 848 $ mkdir alice |
831 $ HOME="`pwd`/alice" | 849 $ HOME="`pwd`/alice" |