Mercurial > hg
annotate tests/test-convert-bzr-ghosts @ 7429:dbc40381620e
tests: Skip tests if they will fail because of outer repo
For different reasons these tests will fail if run in a tmpdir which is in a hg
repo.
The following three tests assumes no .hg in path dirs - I don't know how to
work around that:
* test-dispatch explicitly tests for no repo and expects "abort: There is no
Mercurial repository here (.hg not found)!"
* test-extension expects parentui to be None when not cd'ed to a repo dir
* test-globalopts tests that implicit -R works correctly - that could perhaps be
done from another repo instead of assuming no repo
The following two might be worth investigating further:
* test-convert-svn-sink fails for unknown reasons, starting with "abort:
unresolved merge conflicts (see hg resolve)"
* test-glog gets strange failures when testing "from outer space"
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 27 Nov 2008 00:57:31 +0100 |
parents | 9e6d6568bf7a |
children |
rev | line source |
---|---|
7053 | 1 #!/bin/sh |
2 | |
7058
9e6d6568bf7a
`source` doesn't work for some /bin/sh, use `.` instead
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
7053
diff
changeset
|
3 . "$TESTDIR/bzr-definitions" |
7053 | 4 |
5 cat > ghostcreator.py <<EOF | |
6 import sys | |
7 from bzrlib import workingtree | |
8 wt = workingtree.WorkingTree.open('.') | |
9 | |
10 message, ghostrev = sys.argv[1:] | |
11 wt.set_parent_ids(wt.get_parent_ids() + [ghostrev]) | |
12 wt.commit(message) | |
13 EOF | |
14 | |
15 echo % ghost revisions | |
16 mkdir test-ghost-revisions | |
17 cd test-ghost-revisions | |
18 bzr init -q source | |
19 cd source | |
20 echo content > somefile | |
21 bzr add -q somefile | |
22 bzr commit -q -m 'Initial layout setup' | |
23 echo morecontent >> somefile | |
24 python ../../ghostcreator.py 'Commit with ghost revision' ghostrev | |
25 cd .. | |
26 hg convert source source-hg | |
27 glog -R source-hg |