Mercurial > hg
comparison tests/test-convert @ 9962:a7178eccf2dc
convert: better error on invalid repository type
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 30 Nov 2009 22:23:04 +0100 |
parents | 0941ee76489e |
children | d5bd1beff794 |
comparison
equal
deleted
inserted
replaced
9961:0aa1a632262b | 9962:a7178eccf2dc |
---|---|
48 echo % converting empty dir should fail "nicely" | 48 echo % converting empty dir should fail "nicely" |
49 mkdir emptydir | 49 mkdir emptydir |
50 # override $PATH to ensure p4 not visible; use $PYTHON in case we're | 50 # override $PATH to ensure p4 not visible; use $PYTHON in case we're |
51 # running from a devel copy, not a temp installation | 51 # running from a devel copy, not a temp installation |
52 PATH=$BINDIR $PYTHON $BINDIR/hg convert emptydir 2>&1 | sed 's,file://.*/emptydir,.../emptydir,g' | 52 PATH=$BINDIR $PYTHON $BINDIR/hg convert emptydir 2>&1 | sed 's,file://.*/emptydir,.../emptydir,g' |
53 | |
54 echo % convert with imaginary source type | |
55 hg convert --source-type foo a a-foo | |
56 echo % convert with imaginary sink type | |
57 hg convert --dest-type foo a a-foo | |
58 | |
59 true |