comparison tests/test-largefiles.t @ 17092:5d0d99952494

tests: make rm of usercache in test-largefiles.t more robust Recursive removal of a different path could be fatal - better avoid recursive rm completely.
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 03 Jul 2012 01:49:51 +0200
parents 0c1d10351869
children a6d9b2d33040
comparison
equal deleted inserted replaced
17091:f7a2849ef8cd 17092:5d0d99952494
1 $ USERCACHE="$TESTTMP/cache"; export USERCACHE 1 $ USERCACHE="$TESTTMP/cache"; export USERCACHE
2 $ mkdir -p "${USERCACHE}" 2 $ mkdir "${USERCACHE}"
3 $ cat >> $HGRCPATH <<EOF 3 $ cat >> $HGRCPATH <<EOF
4 > [extensions] 4 > [extensions]
5 > largefiles= 5 > largefiles=
6 > purge= 6 > purge=
7 > rebase= 7 > rebase=
435 large22 435 large22
436 $ cd .. 436 $ cd ..
437 437
438 Test cloning with --all-largefiles flag 438 Test cloning with --all-largefiles flag
439 439
440 $ rm -Rf "${USERCACHE}"/* 440 $ rm "${USERCACHE}"/*
441 $ hg clone --all-largefiles a a-backup 441 $ hg clone --all-largefiles a a-backup
442 updating to branch default 442 updating to branch default
443 5 files updated, 0 files merged, 0 files removed, 0 files unresolved 443 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
444 getting changed largefiles 444 getting changed largefiles
445 3 largefiles updated, 0 removed 445 3 largefiles updated, 0 removed
459 added 2 changesets with 8 changes to 4 files 459 added 2 changesets with 8 changes to 4 files
460 updating to branch default 460 updating to branch default
461 4 files updated, 0 files merged, 0 files removed, 0 files unresolved 461 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
462 getting changed largefiles 462 getting changed largefiles
463 2 largefiles updated, 0 removed 463 2 largefiles updated, 0 removed
464 $ rm -Rf "${USERCACHE}"/* 464 $ rm "${USERCACHE}"/*
465 $ cd a-backup 465 $ cd a-backup
466 $ hg pull --all-largefiles 466 $ hg pull --all-largefiles
467 pulling from $TESTTMP/a (glob) 467 pulling from $TESTTMP/a (glob)
468 searching for changes 468 searching for changes
469 adding changesets 469 adding changesets