comparison tests/test-archive @ 5061:a49f2a4d5ff7

archive: abort on empty repository. Fixes #624.
author Brendan Cully <brendan@kublai.com>
date Tue, 10 Jul 2007 10:06:24 -0700
parents 0e2d0a78f81a
children 0f594cc36aed
comparison
equal deleted inserted replaced
5059:8d9bdcbb2b18 5061:a49f2a4d5ff7
65 hg archive -t tar - | tar tf - | sed "s/$QTIP/TIP/" 65 hg archive -t tar - | tar tf - | sed "s/$QTIP/TIP/"
66 hg archive -r 0 -t tar rev-%r.tar 66 hg archive -r 0 -t tar rev-%r.tar
67 if [ -f rev-0.tar ]; then 67 if [ -f rev-0.tar ]; then
68 echo 'rev-0.tar created' 68 echo 'rev-0.tar created'
69 fi 69 fi
70
71 echo '% empty repo'
72 hg init ../empty
73 cd ../empty
74 hg archive ../test-empty
75 exit 0