Show More
@@ -51,7 +51,7 def has_cvsps(): | |||
|
51 | 51 | return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True) |
|
52 | 52 | |
|
53 | 53 | def has_darcs(): |
|
54 |
return matchoutput('darcs |
|
|
54 | return matchoutput('darcs --version', r'2\.[2-9]', True) | |
|
55 | 55 | |
|
56 | 56 | def has_mtn(): |
|
57 | 57 | return matchoutput('mtn --version', r'monotone', True) and not matchoutput( |
@@ -1,19 +1,13 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | "$TESTDIR/hghave" darcs || exit 80 |
|
4 | if darcs --version 2>&1 | grep '^2\.' > /dev/null; then | |
|
5 | # FIXME: darcs 2 will fail with | |
|
6 | ### Abort: timeout after 180 seconds. | |
|
7 | echo 'skipped: test currently disabled for darcs 2' | |
|
8 | exit 80 | |
|
9 | fi | |
|
10 | 4 | |
|
11 | 5 | echo "[extensions]" >> $HGRCPATH |
|
12 | 6 | echo "convert=" >> $HGRCPATH |
|
13 | 7 | echo 'hgext.graphlog =' >> $HGRCPATH |
|
14 | 8 | |
|
15 | 9 | DARCS_EMAIL='test@example.org'; export DARCS_EMAIL |
|
16 | HOME=do_not_use_HOME_darcs; export HOME | |
|
10 | HOME=`pwd`/do_not_use_HOME_darcs; export HOME | |
|
17 | 11 | |
|
18 | 12 | # skip if we can't import elementtree |
|
19 | 13 | mkdir dummy |
@@ -47,6 +41,7 darcs record -a -l -m p1.2 | |||
|
47 | 41 | |
|
48 | 42 | echo % merge branch |
|
49 | 43 | darcs pull -a ../darcs-clone |
|
44 | sleep 1 | |
|
50 | 45 | echo e > a |
|
51 | 46 | darcs record -a -l -m p2 |
|
52 | 47 | cd .. |
@@ -56,7 +51,7 glog() | |||
|
56 | 51 | hg glog --template '{rev} "{desc|firstline}" files: {files}\n' "$@" |
|
57 | 52 | } |
|
58 | 53 | |
|
59 |
hg convert darcs-repo darcs-repo-hg |
|
|
54 | hg convert darcs-repo darcs-repo-hg | |
|
60 | 55 | # The converter does not currently handle patch conflicts very well. |
|
61 | 56 | # When they occur, it reverts *all* changes and moves forward, |
|
62 | 57 | # letting the conflict resolving patch fix collisions. |
General Comments 0
You need to be logged in to leave comments.
Login now