tests/test-largefiles.t
changeset 17088 31f7dd50ed40
parent 17017 953faba28e91
child 17089 0c1d10351869
equal deleted inserted replaced
17087:a79776f427b4 17088:31f7dd50ed40
     1   $ "$TESTDIR/hghave" serve || exit 80
     1   $ "$TESTDIR/hghave" serve || exit 80
     2   $ USERCACHE=`pwd`/cache; export USERCACHE
     2   $ USERCACHE="$TESTTMP/cache"; export USERCACHE
     3   $ mkdir -p ${USERCACHE}
     3   $ mkdir -p ${USERCACHE}
     4   $ cat >> $HGRCPATH <<EOF
     4   $ cat >> $HGRCPATH <<EOF
     5   > [extensions]
     5   > [extensions]
     6   > largefiles=
     6   > largefiles=
     7   > purge=
     7   > purge=
    12   > [largefiles]
    12   > [largefiles]
    13   > minsize=2
    13   > minsize=2
    14   > patterns=glob:**.dat
    14   > patterns=glob:**.dat
    15   > usercache=${USERCACHE}
    15   > usercache=${USERCACHE}
    16   > [hooks]
    16   > [hooks]
    17   > precommit=echo "Invoking status precommit hook"; hg status
    17   > precommit=sh -c "echo \"Invoking status precommit hook\"; hg status"
    18   > EOF
    18   > EOF
    19 
    19 
    20 Create the repo with a couple of revisions of both large and normal
    20 Create the repo with a couple of revisions of both large and normal
    21 files, testing that status correctly shows largefiles and that summary output
    21 files, testing that status correctly shows largefiles and that summary output
    22 is correct.
    22 is correct.
   461   getting changed largefiles
   461   getting changed largefiles
   462   2 largefiles updated, 0 removed
   462   2 largefiles updated, 0 removed
   463   $ rm -Rf ${USERCACHE}/*
   463   $ rm -Rf ${USERCACHE}/*
   464   $ cd a-backup
   464   $ cd a-backup
   465   $ hg pull --all-largefiles
   465   $ hg pull --all-largefiles
   466   pulling from $TESTTMP/a
   466   pulling from $TESTTMP/a (glob)
   467   searching for changes
   467   searching for changes
   468   adding changesets
   468   adding changesets
   469   adding manifests
   469   adding manifests
   470   adding file changes
   470   adding file changes
   471   added 6 changesets with 16 changes to 8 files
   471   added 6 changesets with 16 changes to 8 files
   987   $ cat hg.pid >> $DAEMON_PIDS
   987   $ cat hg.pid >> $DAEMON_PIDS
   988   $ hg push -R r7 http://localhost:$HGPORT1
   988   $ hg push -R r7 http://localhost:$HGPORT1
   989   pushing to http://localhost:$HGPORT1/
   989   pushing to http://localhost:$HGPORT1/
   990   searching for changes
   990   searching for changes
   991   remote: largefiles: failed to put 4cdac4d8b084d0b599525cf732437fb337d422a8 into store: largefile contents do not match hash
   991   remote: largefiles: failed to put 4cdac4d8b084d0b599525cf732437fb337d422a8 into store: largefile contents do not match hash
   992   abort: remotestore: could not put $TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 to remote store http://localhost:$HGPORT1/
   992   abort: remotestore: could not put $TESTTMP/r7/.hg/largefiles/4cdac4d8b084d0b599525cf732437fb337d422a8 to remote store http://localhost:$HGPORT1/ (glob)
   993   [255]
   993   [255]
   994   $ rm -rf empty
   994   $ rm -rf empty
   995 
   995 
   996 Push a largefiles repository to a served empty repository
   996 Push a largefiles repository to a served empty repository
   997   $ hg init r8
   997   $ hg init r8