Show More
@@ -20,8 +20,10 b' def putlfile(repo, proto, sha):' | |||||
20 | user cache.''' |
|
20 | user cache.''' | |
21 | proto.redirect() |
|
21 | proto.redirect() | |
22 |
|
22 | |||
23 |
|
|
23 | path = lfutil.storepath(repo, sha) | |
24 | createmode=repo.store.createmode) |
|
24 | util.makedirs(os.path.dirname(path)) | |
|
25 | tmpfp = util.atomictempfile(path, createmode=repo.store.createmode) | |||
|
26 | ||||
25 | try: |
|
27 | try: | |
26 | try: |
|
28 | try: | |
27 | proto.getfile(tmpfp) |
|
29 | proto.getfile(tmpfp) |
@@ -952,6 +952,31 b' Corrupt the cached largefile in r7' | |||||
952 | [255] |
|
952 | [255] | |
953 | $ rm -rf empty |
|
953 | $ rm -rf empty | |
954 |
|
954 | |||
|
955 | Push a largefiles repository to a served empty repository | |||
|
956 | $ hg init r8 | |||
|
957 | $ echo c3 > r8/f1 | |||
|
958 | $ hg add --large r8/f1 -R r8 | |||
|
959 | $ hg commit -m "m1" -R r8 | |||
|
960 | Invoking status precommit hook | |||
|
961 | A f1 | |||
|
962 | $ hg init empty | |||
|
963 | $ hg serve -R empty -d -p $HGPORT2 --pid-file hg.pid \ | |||
|
964 | > --config 'web.allow_push=*' --config web.push_ssl=False | |||
|
965 | $ cat hg.pid >> $DAEMON_PIDS | |||
|
966 | $ rm ${USERCACHE}/* | |||
|
967 | $ hg push -R r8 http://localhost:$HGPORT2 | |||
|
968 | pushing to http://localhost:$HGPORT2/ | |||
|
969 | searching for changes | |||
|
970 | searching for changes | |||
|
971 | remote: adding changesets | |||
|
972 | remote: adding manifests | |||
|
973 | remote: adding file changes | |||
|
974 | remote: added 1 changesets with 1 changes to 1 files | |||
|
975 | $ rm -rf empty | |||
|
976 | ||||
|
977 | used all HGPORTs, kill all daemons | |||
|
978 | $ "$TESTDIR/killdaemons.py" | |||
|
979 | ||||
955 | Clone a local repository owned by another user |
|
980 | Clone a local repository owned by another user | |
956 | We have to simulate that here by setting $HOME and removing write permissions |
|
981 | We have to simulate that here by setting $HOME and removing write permissions | |
957 | $ ORIGHOME="$HOME" |
|
982 | $ ORIGHOME="$HOME" |
General Comments 0
You need to be logged in to leave comments.
Login now