tests/test-largefiles.t
changeset 19008 9d33d6e0d442
parent 18981 83ead8cb0ff2
child 19088 ce4472b2edb2
equal deleted inserted replaced
19007:266b5fb72f26 19008:9d33d6e0d442
  1304 Update to revision with missing largefile - and make sure it really is missing
  1304 Update to revision with missing largefile - and make sure it really is missing
  1305 
  1305 
  1306   $ rm ${USERCACHE}/7838695e10da2bb75ac1156565f40a2595fa2fa0
  1306   $ rm ${USERCACHE}/7838695e10da2bb75ac1156565f40a2595fa2fa0
  1307   $ hg up -r 6
  1307   $ hg up -r 6
  1308   getting changed largefiles
  1308   getting changed largefiles
  1309   error getting id 7838695e10da2bb75ac1156565f40a2595fa2fa0 from url file:$TESTTMP/d for file large3: can't get file locally (glob)
  1309   large3: largefile 7838695e10da2bb75ac1156565f40a2595fa2fa0 not available from file:$TESTTMP/d
  1310   1 largefiles updated, 2 removed
  1310   1 largefiles updated, 2 removed
  1311   4 files updated, 0 files merged, 2 files removed, 0 files unresolved
  1311   4 files updated, 0 files merged, 2 files removed, 0 files unresolved
  1312   $ rm normal3
  1312   $ rm normal3
  1313   $ echo >> sub/normal4
  1313   $ echo >> sub/normal4
  1314   $ hg ci -m 'commit with missing files'
  1314   $ hg ci -m 'commit with missing files'
  1325   $ hg st
  1325   $ hg st
  1326   ! large3
  1326   ! large3
  1327   ! normal3
  1327   ! normal3
  1328   $ hg up -Cr.
  1328   $ hg up -Cr.
  1329   getting changed largefiles
  1329   getting changed largefiles
  1330   error getting id 7838695e10da2bb75ac1156565f40a2595fa2fa0 from url file:$TESTTMP/d for file large3: can't get file locally (glob)
  1330   large3: largefile 7838695e10da2bb75ac1156565f40a2595fa2fa0 not available from file:$TESTTMP/d
  1331   0 largefiles updated, 0 removed
  1331   0 largefiles updated, 0 removed
  1332   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1332   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1333   $ hg st
  1333   $ hg st
  1334   ! large3
  1334   ! large3
  1335   $ hg rollback
  1335   $ hg rollback
  1347   created new head
  1347   created new head
  1348   $ hg merge -r 6
  1348   $ hg merge -r 6
  1349   4 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1349   4 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1350   (branch merge, don't forget to commit)
  1350   (branch merge, don't forget to commit)
  1351   getting changed largefiles
  1351   getting changed largefiles
  1352   error getting id 7838695e10da2bb75ac1156565f40a2595fa2fa0 from url file:$TESTTMP/d for file large3: can't get file locally (glob)
  1352   large3: largefile 7838695e10da2bb75ac1156565f40a2595fa2fa0 not available from file:$TESTTMP/d
  1353   1 largefiles updated, 0 removed
  1353   1 largefiles updated, 0 removed
  1354 
  1354 
  1355   $ hg rollback -q
  1355   $ hg rollback -q
  1356   $ hg up -Cq
  1356   $ hg up -Cq
  1357 
  1357 
  1771 
  1771 
  1772 largefiles pulled on update - a largefile missing on the server:
  1772 largefiles pulled on update - a largefile missing on the server:
  1773   $ mv empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 .
  1773   $ mv empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 .
  1774   $ hg -R http-clone up --config largefiles.usercache=http-clone-usercache
  1774   $ hg -R http-clone up --config largefiles.usercache=http-clone-usercache
  1775   getting changed largefiles
  1775   getting changed largefiles
  1776   abort: remotestore: largefile 02a439e5c31c526465ab1a0ca1f431f76b827b90 is missing
  1776   f1: largefile 02a439e5c31c526465ab1a0ca1f431f76b827b90 not available from http://localhost:$HGPORT2/
  1777   [255]
  1777   0 largefiles updated, 0 removed
       
  1778   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
  1779   $ hg -R http-clone st
       
  1780   ! f1
  1778   $ hg -R http-clone up -Cqr null
  1781   $ hg -R http-clone up -Cqr null
  1779 
  1782 
  1780 largefiles pulled on update - a largefile corrupted on the server:
  1783 largefiles pulled on update - a largefile corrupted on the server:
  1781   $ echo corruption > empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90
  1784   $ echo corruption > empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90
  1782   $ hg -R http-clone up --config largefiles.usercache=http-clone-usercache
  1785   $ hg -R http-clone up --config largefiles.usercache=http-clone-usercache
  1809   getting .hglf/f1
  1812   getting .hglf/f1
  1810   updating: .hglf/f1 1/1 files (100.00%)
  1813   updating: .hglf/f1 1/1 files (100.00%)
  1811   getting changed largefiles
  1814   getting changed largefiles
  1812   using http://localhost:$HGPORT2/
  1815   using http://localhost:$HGPORT2/
  1813   sending capabilities command
  1816   sending capabilities command
       
  1817   sending batch command
  1814   getting largefiles: 0/1 lfile (0.00%)
  1818   getting largefiles: 0/1 lfile (0.00%)
  1815   getting f1:02a439e5c31c526465ab1a0ca1f431f76b827b90
  1819   getting f1:02a439e5c31c526465ab1a0ca1f431f76b827b90
  1816   sending batch command
       
  1817   sending getlfile command
  1820   sending getlfile command
  1818   found 02a439e5c31c526465ab1a0ca1f431f76b827b90 in store
  1821   found 02a439e5c31c526465ab1a0ca1f431f76b827b90 in store
  1819   1 largefiles updated, 0 removed
  1822   1 largefiles updated, 0 removed
  1820   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1823   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1821 
  1824