tests/test-largefiles-wireproto.t
branchstable
changeset 26417 9a466b9f9792
parent 25495 c63bf97cf7c7
child 28463 19b4a2087dfc
equal deleted inserted replaced
26416:aca296094a29 26417:9a466b9f9792
    13   > publish=False
    13   > publish=False
    14   > [largefiles]
    14   > [largefiles]
    15   > minsize=2
    15   > minsize=2
    16   > patterns=glob:**.dat
    16   > patterns=glob:**.dat
    17   > usercache=${USERCACHE}
    17   > usercache=${USERCACHE}
       
    18   > [web]
       
    19   > allow_archive = zip
    18   > [hooks]
    20   > [hooks]
    19   > precommit=sh -c "echo \\"Invoking status precommit hook\\"; hg status"
    21   > precommit=sh -c "echo \\"Invoking status precommit hook\\"; hg status"
    20   > EOF
    22   > EOF
    21 
    23 
    22 
    24 
   212   $ hg clone http://localhost:$HGPORT2/#default http-clone -U
   214   $ hg clone http://localhost:$HGPORT2/#default http-clone -U
   213   adding changesets
   215   adding changesets
   214   adding manifests
   216   adding manifests
   215   adding file changes
   217   adding file changes
   216   added 1 changesets with 1 changes to 1 files
   218   added 1 changesets with 1 changes to 1 files
       
   219 
       
   220 Archive contains largefiles
       
   221   >>> import urllib2, os
       
   222   >>> u = 'http://localhost:%s/archive/default.zip' % os.environ['HGPORT2']
       
   223   >>> with open('archive.zip', 'w') as f:
       
   224   ...     f.write(urllib2.urlopen(u).read())
       
   225   $ unzip -t archive.zip
       
   226   Archive:  archive.zip
       
   227       testing: empty-default/.hg_archival.txt   OK
       
   228       testing: empty-default/f1         OK
       
   229   No errors detected in compressed data of archive.zip.
   217 
   230 
   218 test 'verify' with remotestore:
   231 test 'verify' with remotestore:
   219 
   232 
   220   $ rm "${USERCACHE}"/02a439e5c31c526465ab1a0ca1f431f76b827b90
   233   $ rm "${USERCACHE}"/02a439e5c31c526465ab1a0ca1f431f76b827b90
   221   $ mv empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 .
   234   $ mv empty/.hg/largefiles/02a439e5c31c526465ab1a0ca1f431f76b827b90 .