Mercurial > hg
comparison tests/test-convert-darcs @ 5520:cc3af86ab6fe
test-convert-darcs: skip if we can't find the elementtree module
This patch is a bit dirty to avoid having to repeat the dance required
to import elementtree.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 09 Nov 2007 20:21:35 -0200 |
parents | a19167001251 |
children | f29b7c8419cb |
comparison
equal
deleted
inserted
replaced
5519:b688d264a294 | 5520:cc3af86ab6fe |
---|---|
6 echo "convert=" >> $HGRCPATH | 6 echo "convert=" >> $HGRCPATH |
7 echo 'hgext.graphlog =' >> $HGRCPATH | 7 echo 'hgext.graphlog =' >> $HGRCPATH |
8 | 8 |
9 DARCS_EMAIL='test@example.org'; export DARCS_EMAIL | 9 DARCS_EMAIL='test@example.org'; export DARCS_EMAIL |
10 HOME=do_not_use_HOME_darcs; export HOME | 10 HOME=do_not_use_HOME_darcs; export HOME |
11 | |
12 # skip if we can't import elementtree | |
13 mkdir dummy | |
14 mkdir dummy/_darcs | |
15 if hg convert dummy 2>&1 | grep ElementTree > /dev/null; then | |
16 echo 'hghave: missing feature: elementtree module' | |
17 exit 80 | |
18 fi | |
11 | 19 |
12 echo % initialize darcs repo | 20 echo % initialize darcs repo |
13 mkdir darcs-repo | 21 mkdir darcs-repo |
14 cd darcs-repo | 22 cd darcs-repo |
15 darcs init | 23 darcs init |