comparison tests/test-largefiles.t @ 16986:79902f7e27df

tests: convert some hghave unix-permissions to #if
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 19 Jun 2012 01:43:41 +0200
parents 6a997aacba5d
children 953faba28e91
comparison
equal deleted inserted replaced
16985:40c9aa702303 16986:79902f7e27df
1 $ "$TESTDIR/hghave" unix-permissions serve || exit 80 1 $ "$TESTDIR/hghave" serve || exit 80
2 $ USERCACHE=`pwd`/cache; export USERCACHE 2 $ USERCACHE=`pwd`/cache; export USERCACHE
3 $ mkdir -p ${USERCACHE} 3 $ mkdir -p ${USERCACHE}
4 $ cat >> $HGRCPATH <<EOF 4 $ cat >> $HGRCPATH <<EOF
5 > [extensions] 5 > [extensions]
6 > largefiles= 6 > largefiles=
1016 $ rm -rf empty 1016 $ rm -rf empty
1017 1017
1018 used all HGPORTs, kill all daemons 1018 used all HGPORTs, kill all daemons
1019 $ "$TESTDIR/killdaemons.py" 1019 $ "$TESTDIR/killdaemons.py"
1020 1020
1021 #if unix-permissions
1022
1021 Clone a local repository owned by another user 1023 Clone a local repository owned by another user
1022 We have to simulate that here by setting $HOME and removing write permissions 1024 We have to simulate that here by setting $HOME and removing write permissions
1023 $ ORIGHOME="$HOME" 1025 $ ORIGHOME="$HOME"
1024 $ mkdir alice 1026 $ mkdir alice
1025 $ HOME="`pwd`/alice" 1027 $ HOME="`pwd`/alice"
1048 getting changed largefiles 1050 getting changed largefiles
1049 1 largefiles updated, 0 removed 1051 1 largefiles updated, 0 removed
1050 $ cd .. 1052 $ cd ..
1051 $ chmod -R u+w alice/pubrepo 1053 $ chmod -R u+w alice/pubrepo
1052 $ HOME="$ORIGHOME" 1054 $ HOME="$ORIGHOME"
1055
1056 #endif
1053 1057
1054 #if symlink 1058 #if symlink
1055 1059
1056 Symlink to a large largefile should behave the same as a symlink to a normal file 1060 Symlink to a large largefile should behave the same as a symlink to a normal file
1057 $ hg init largesymlink 1061 $ hg init largesymlink