equal
deleted
inserted
replaced
|
1 |
|
2 $ . "$TESTDIR/bzr-definitions" |
|
3 $ cat > ghostcreator.py <<EOF |
|
4 > import sys |
|
5 > from bzrlib import workingtree |
|
6 > wt = workingtree.WorkingTree.open('.') |
|
7 > |
|
8 > message, ghostrev = sys.argv[1:] |
|
9 > wt.set_parent_ids(wt.get_parent_ids() + [ghostrev]) |
|
10 > wt.commit(message) |
|
11 > EOF |
|
12 |
|
13 ghost revisions |
|
14 |
|
15 $ mkdir test-ghost-revisions |
|
16 $ cd test-ghost-revisions |
|
17 $ bzr init -q source |
|
18 $ cd source |
|
19 $ echo content > somefile |
|
20 $ bzr add -q somefile |
|
21 $ bzr commit -q -m 'Initial layout setup' |
|
22 $ echo morecontent >> somefile |
|
23 $ python ../../ghostcreator.py 'Commit with ghost revision' ghostrev |
|
24 $ cd .. |
|
25 $ hg convert source source-hg |
|
26 initializing destination source-hg repository |
|
27 scanning source... |
|
28 sorting... |
|
29 converting... |
|
30 1 Initial layout setup |
|
31 0 Commit with ghost revision |
|
32 $ glog -R source-hg |
|
33 o 1 "Commit with ghost revision" files: somefile |
|
34 | |
|
35 o 0 "Initial layout setup" files: somefile |
|
36 |