##// END OF EJS Templates
tests: clarify test for pushing corrupted largefile...
Mads Kiilerich -
r18487:7aacc114 stable
parent child Browse files
Show More
@@ -1578,9 +1578,10 b' largefiles clients refuse to push largef'
1578 1578 $ cd ..
1579 1579
1580 1580 putlfile errors are shown (issue3123)
1581 Corrupt the cached largefile in r7 and in the usercache (required for testing on vfat)
1582 $ echo corruption > "$TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8"
1583 $ echo corruption > "$USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8"
1581 Corrupt the cached largefile in r7 and move it out of the servers usercache
1582 $ mv r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 .
1583 $ echo 'client side corruption' > r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8
1584 $ rm "$USERCACHE/4cdac4d8b084d0b599525cf732437fb337d422a8"
1584 1585 $ hg init empty
1585 1586 $ hg serve -R empty -d -p $HGPORT1 --pid-file hg.pid \
1586 1587 > --config 'web.allow_push=*' --config web.push_ssl=False
@@ -1591,6 +1592,19 b' Corrupt the cached largefile in r7 and i'
1591 1592 remote: largefiles: failed to put 4cdac4d8b084d0b599525cf732437fb337d422a8 into store: largefile contents do not match hash
1592 1593 abort: remotestore: could not put $TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 to remote store http://localhost:$HGPORT1/ (glob)
1593 1594 [255]
1595 $ mv 4cdac4d8b084d0b599525cf732437fb337d422a8 r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8
1596 Push of file that exists on server but is corrupted - magic healing is nice ... but too magic
1597 $ echo "server side corruption" > empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8
1598 $ hg push -R r7 http://localhost:$HGPORT1
1599 pushing to http://localhost:$HGPORT1/
1600 searching for changes
1601 searching for changes
1602 remote: adding changesets
1603 remote: adding manifests
1604 remote: adding file changes
1605 remote: added 2 changesets with 2 changes to 2 files
1606 $ cat empty/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8
1607 c2
1594 1608 $ rm -rf empty
1595 1609
1596 1610 Push a largefiles repository to a served empty repository
General Comments 0
You need to be logged in to leave comments. Login now