Show More
@@ -1,6 +1,5 b'' | |||
|
1 | $ "$TESTDIR/hghave" serve || exit 80 | |
|
2 | 1 |
|
|
3 | $ mkdir -p ${USERCACHE} | |
|
2 | $ mkdir -p "${USERCACHE}" | |
|
4 | 3 | $ cat >> $HGRCPATH <<EOF |
|
5 | 4 | > [extensions] |
|
6 | 5 | > largefiles= |
@@ -142,6 +141,7 b' Test moving largefiles and verify that n' | |||
|
142 | 141 | $ cat sub/large4 |
|
143 | 142 | large22 |
|
144 | 143 | |
|
144 | #if hgweb | |
|
145 | 145 | Test display of largefiles in hgweb |
|
146 | 146 | |
|
147 | 147 | $ hg serve -d -p $HGPORT --pid-file ../hg.pid |
@@ -164,6 +164,7 b' Test display of largefiles in hgweb' | |||
|
164 | 164 | |
|
165 | 165 | |
|
166 | 166 | $ "$TESTDIR/killdaemons.py" |
|
167 | #endif | |
|
167 | 168 | |
|
168 | 169 | Test archiving the various revisions. These hit corner cases known with |
|
169 | 170 | archiving. |
@@ -436,7 +437,7 b' tests update).' | |||
|
436 | 437 | |
|
437 | 438 | Test cloning with --all-largefiles flag |
|
438 | 439 | |
|
439 | $ rm -Rf ${USERCACHE}/* | |
|
440 | $ rm -Rf "${USERCACHE}"/* | |
|
440 | 441 | $ hg clone --all-largefiles a a-backup |
|
441 | 442 | updating to branch default |
|
442 | 443 | 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
@@ -460,7 +461,7 b' Test pulling with --all-largefiles flag' | |||
|
460 | 461 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
461 | 462 | getting changed largefiles |
|
462 | 463 | 2 largefiles updated, 0 removed |
|
463 | $ rm -Rf ${USERCACHE}/* | |
|
464 | $ rm -Rf "${USERCACHE}"/* | |
|
464 | 465 | $ cd a-backup |
|
465 | 466 | $ hg pull --all-largefiles |
|
466 | 467 | pulling from $TESTTMP/a (glob) |
@@ -727,7 +728,7 b' correctly.' | |||
|
727 | 728 | 3 largefiles updated, 0 removed |
|
728 | 729 | # Delete the largefiles in the largefiles system cache so that we have an |
|
729 | 730 | # opportunity to test that caching after a pull works. |
|
730 | $ rm ${USERCACHE}/* | |
|
731 | $ rm "${USERCACHE}"/* | |
|
731 | 732 | $ cd f |
|
732 | 733 | $ echo "large4-merge-test" > sub/large4 |
|
733 | 734 | $ hg commit -m "Modify large4 to test merge" |
@@ -845,7 +846,7 b' Cat a largefile' | |||
|
845 | 846 | normal3-modified |
|
846 | 847 | $ hg cat sub/large4 |
|
847 | 848 | large4-modified |
|
848 | $ rm ${USERCACHE}/* | |
|
849 | $ rm "${USERCACHE}"/* | |
|
849 | 850 | $ hg cat -r a381d2c8c80e -o cat.out sub/large4 |
|
850 | 851 | $ cat cat.out |
|
851 | 852 | large4-modified |
@@ -880,6 +881,7 b' Test --normal flag' | |||
|
880 | 881 | (use 'hg revert new-largefile' to cancel the pending addition) |
|
881 | 882 | $ cd .. |
|
882 | 883 | |
|
884 | #if serve | |
|
883 | 885 | vanilla clients not locked out from largefiles servers on vanilla repos |
|
884 | 886 | $ mkdir r1 |
|
885 | 887 | $ cd r1 |
@@ -912,6 +914,8 b' largefiles clients still work with vanil' | |||
|
912 | 914 | added 1 changesets with 1 changes to 1 files |
|
913 | 915 | updating to branch default |
|
914 | 916 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
917 | #endif | |
|
918 | ||
|
915 | 919 | |
|
916 | 920 | vanilla clients locked out from largefiles http repos |
|
917 | 921 | $ mkdir r4 |
@@ -923,6 +927,8 b' vanilla clients locked out from largefil' | |||
|
923 | 927 | Invoking status precommit hook |
|
924 | 928 | A f1 |
|
925 | 929 | $ cd .. |
|
930 | ||
|
931 | #if serve | |
|
926 | 932 | $ hg serve -R r4 -d -p $HGPORT2 --pid-file hg.pid |
|
927 | 933 | $ cat hg.pid >> $DAEMON_PIDS |
|
928 | 934 | $ hg --config extensions.largefiles=! clone http://localhost:$HGPORT2 r5 |
@@ -935,6 +941,7 b' vanilla clients locked out from largefil' | |||
|
935 | 941 | |
|
936 | 942 | used all HGPORTs, kill all daemons |
|
937 | 943 | $ "$TESTDIR/killdaemons.py" |
|
944 | #endif | |
|
938 | 945 | |
|
939 | 946 | vanilla clients locked out from largefiles ssh repos |
|
940 | 947 | $ hg --config extensions.largefiles=! clone -e "python \"$TESTDIR/dummyssh\"" ssh://user@dummy/r4 r5 |
@@ -945,6 +952,8 b' vanilla clients locked out from largefil' | |||
|
945 | 952 | Please enable it in your Mercurial config file. |
|
946 | 953 | [255] |
|
947 | 954 | |
|
955 | #if serve | |
|
956 | ||
|
948 | 957 | largefiles clients refuse to push largefiles repos to vanilla servers |
|
949 | 958 | $ mkdir r6 |
|
950 | 959 | $ cd r6 |
@@ -980,7 +989,7 b' largefiles clients refuse to push largef' | |||
|
980 | 989 | |
|
981 | 990 | putlfile errors are shown (issue3123) |
|
982 | 991 | Corrupt the cached largefile in r7 |
|
983 | $ echo corruption > $USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8 | |
|
992 | $ echo corruption > "$USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8" | |
|
984 | 993 | $ hg init empty |
|
985 | 994 | $ hg serve -R empty -d -p $HGPORT1 --pid-file hg.pid \ |
|
986 | 995 | > --config 'web.allow_push=*' --config web.push_ssl=False |
@@ -1004,7 +1013,7 b' Push a largefiles repository to a served' | |||
|
1004 | 1013 | $ hg serve -R empty -d -p $HGPORT2 --pid-file hg.pid \ |
|
1005 | 1014 | > --config 'web.allow_push=*' --config web.push_ssl=False |
|
1006 | 1015 | $ cat hg.pid >> $DAEMON_PIDS |
|
1007 | $ rm ${USERCACHE}/* | |
|
1016 | $ rm "${USERCACHE}"/* | |
|
1008 | 1017 | $ hg push -R r8 http://localhost:$HGPORT2 |
|
1009 | 1018 | pushing to http://localhost:$HGPORT2/ |
|
1010 | 1019 | searching for changes |
@@ -1018,6 +1027,9 b' Push a largefiles repository to a served' | |||
|
1018 | 1027 | used all HGPORTs, kill all daemons |
|
1019 | 1028 | $ "$TESTDIR/killdaemons.py" |
|
1020 | 1029 | |
|
1030 | #endif | |
|
1031 | ||
|
1032 | ||
|
1021 | 1033 | #if unix-permissions |
|
1022 | 1034 | |
|
1023 | 1035 | Clone a local repository owned by another user |
General Comments 0
You need to be logged in to leave comments.
Login now