tests/test-clonebundles-autogen.t
changeset 50404 971dc2369b04
parent 50403 5ae30ff79c76
child 50405 5b70b9f5a2f9
equal deleted inserted replaced
50403:5ae30ff79c76 50404:971dc2369b04
     9   > clonebundles =
     9   > clonebundles =
    10   > 
    10   > 
    11   > [clone-bundles]
    11   > [clone-bundles]
    12   > auto-generate.formats = v2
    12   > auto-generate.formats = v2
    13   > upload-command = cp "\$HGCB_BUNDLE_PATH" "$TESTTMP"/final-upload/
    13   > upload-command = cp "\$HGCB_BUNDLE_PATH" "$TESTTMP"/final-upload/
       
    14   > delete-command = rm -f "$TESTTMP/final-upload/\$HGCB_BASENAME"
    14   > url-template = file://$TESTTMP/final-upload/{basename}
    15   > url-template = file://$TESTTMP/final-upload/{basename}
    15   > 
    16   > 
    16   > [devel]
    17   > [devel]
    17   > debug.clonebundles=yes
    18   > debug.clonebundles=yes
    18   > EOF
    19   > EOF
    66   file:/*/$TESTTMP/final-upload/full-v2-4_revs-6427147b985a_tip-*_txn.hg BUNDLESPEC=v2 REQUIRESNI=true (glob)
    67   file:/*/$TESTTMP/final-upload/full-v2-4_revs-6427147b985a_tip-*_txn.hg BUNDLESPEC=v2 REQUIRESNI=true (glob)
    67   $ ls -1 ../final-upload
    68   $ ls -1 ../final-upload
    68   full-v2-2_revs-aaff8d2ffbbf_tip-*_txn.hg (glob)
    69   full-v2-2_revs-aaff8d2ffbbf_tip-*_txn.hg (glob)
    69   full-v2-4_revs-6427147b985a_tip-*_txn.hg (glob)
    70   full-v2-4_revs-6427147b985a_tip-*_txn.hg (glob)
    70   $ ls -1 ../server/.hg/tmp-bundles
    71   $ ls -1 ../server/.hg/tmp-bundles
       
    72 
       
    73 Older bundles are cleaned up with more pushes
       
    74 ---------------------------------------------
       
    75 
       
    76   $ touch faz
       
    77   $ hg -q commit -A -m 'add faz'
       
    78   $ touch fuz
       
    79   $ hg -q commit -A -m 'add fuz'
       
    80   $ hg push
       
    81   pushing to $TESTTMP/server
       
    82   searching for changes
       
    83   adding changesets
       
    84   adding manifests
       
    85   adding file changes
       
    86   clone-bundles: deleting bundle full-v2-2_revs-aaff8d2ffbbf_tip-*_txn.hg (glob)
       
    87   6 changesets found
       
    88   added 2 changesets with 2 changes to 2 files
       
    89   clone-bundles: starting bundle generation: v2
       
    90 
       
    91   $ cat ../server/.hg/clonebundles.manifest
       
    92   file:/*/$TESTTMP/final-upload/full-v2-6_revs-b1010e95ea00_tip-*_txn.hg BUNDLESPEC=v2 REQUIRESNI=true (glob)
       
    93   $ ls -1 ../final-upload
       
    94   full-v2-4_revs-6427147b985a_tip-*_txn.hg (glob)
       
    95   full-v2-6_revs-b1010e95ea00_tip-*_txn.hg (glob)
       
    96   $ ls -1 ../server/.hg/tmp-bundles