Show More
@@ -51,7 +51,7 b' def has_cvsps():' | |||||
51 | return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True) |
|
51 | return matchoutput('cvsps -h -q 2>&1', r'cvsps version', True) | |
52 |
|
52 | |||
53 | def has_darcs(): |
|
53 | def has_darcs(): | |
54 |
return matchoutput('darcs |
|
54 | return matchoutput('darcs --version', r'2\.[2-9]', True) | |
55 |
|
55 | |||
56 | def has_mtn(): |
|
56 | def has_mtn(): | |
57 | return matchoutput('mtn --version', r'monotone', True) and not matchoutput( |
|
57 | return matchoutput('mtn --version', r'monotone', True) and not matchoutput( |
@@ -1,19 +1,13 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | "$TESTDIR/hghave" darcs || exit 80 |
|
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 | echo "[extensions]" >> $HGRCPATH |
|
5 | echo "[extensions]" >> $HGRCPATH | |
12 | echo "convert=" >> $HGRCPATH |
|
6 | echo "convert=" >> $HGRCPATH | |
13 | echo 'hgext.graphlog =' >> $HGRCPATH |
|
7 | echo 'hgext.graphlog =' >> $HGRCPATH | |
14 |
|
8 | |||
15 | DARCS_EMAIL='test@example.org'; export DARCS_EMAIL |
|
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 | # skip if we can't import elementtree |
|
12 | # skip if we can't import elementtree | |
19 | mkdir dummy |
|
13 | mkdir dummy | |
@@ -47,6 +41,7 b' darcs record -a -l -m p1.2' | |||||
47 |
|
41 | |||
48 | echo % merge branch |
|
42 | echo % merge branch | |
49 | darcs pull -a ../darcs-clone |
|
43 | darcs pull -a ../darcs-clone | |
|
44 | sleep 1 | |||
50 | echo e > a |
|
45 | echo e > a | |
51 | darcs record -a -l -m p2 |
|
46 | darcs record -a -l -m p2 | |
52 | cd .. |
|
47 | cd .. | |
@@ -56,7 +51,7 b' glog()' | |||||
56 | hg glog --template '{rev} "{desc|firstline}" files: {files}\n' "$@" |
|
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 | # The converter does not currently handle patch conflicts very well. |
|
55 | # The converter does not currently handle patch conflicts very well. | |
61 | # When they occur, it reverts *all* changes and moves forward, |
|
56 | # When they occur, it reverts *all* changes and moves forward, | |
62 | # letting the conflict resolving patch fix collisions. |
|
57 | # letting the conflict resolving patch fix collisions. |
@@ -5,6 +5,7 b" Finished recording patch 'p1.1'" | |||||
5 | % update source |
|
5 | % update source | |
6 | Finished recording patch 'p1.2' |
|
6 | Finished recording patch 'p1.2' | |
7 | % merge branch |
|
7 | % merge branch | |
|
8 | Backing up ./a(-darcs-backup0) | |||
8 | We have conflicts in the following files: |
|
9 | We have conflicts in the following files: | |
9 | ./a |
|
10 | ./a | |
10 | Finished pulling and applying. |
|
11 | Finished pulling and applying. |
General Comments 0
You need to be logged in to leave comments.
Login now