comparison tests/test-stabilize-result.t @ 284:88a851a54f26

evolve: fix relocate() with removed revision relocate() was not handling the case where the rebased revision was discarded and was raising when trying to update the phase of None.
author Patrick Mezard <patrick@mezard.eu>
date Tue, 19 Jun 2012 17:57:54 +0200
parents
children d68ccae92d52
comparison
equal deleted inserted replaced
283:8d1a8eeb5a84 284:88a851a54f26
1 $ cat >> $HGRCPATH <<EOF
2 > [defaults]
3 > amend=-d "0 0"
4 > [extensions]
5 > hgext.rebase=
6 > hgext.graphlog=
7 > EOF
8 $ echo "obsolete=$(echo $(dirname $TESTDIR))/hgext/obsolete.py" >> $HGRCPATH
9 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH
10
11 $ glog() {
12 > hg glog --template \
13 > '{rev}:{node|short}@{branch}({phase}) bk:[{bookmarks}] {desc|firstline}\n' "$@"
14 > }
15
16 Test stabilize removing the changeset being stabilized
17
18 $ hg init empty
19 $ cd empty
20 $ echo a > a
21 $ hg ci -Am adda a
22 $ echo b > b
23 $ hg ci -Am addb b
24 $ echo a >> a
25 $ hg ci -m changea
26 $ hg bookmark changea
27 $ hg up 1
28 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
29 $ echo a >> a
30 $ hg amend -m changea
31 1 new unstables changesets
32 $ hg stabilize -v
33 move:[2] changea
34 atop:[4] changea
35 hg rebase -Dr cce2c55b8965 -d 1447e1c4828d
36 resolving manifests
37 $ glog --hidden
38 @ 4:1447e1c4828d@default(draft) bk:[changea] changea
39 |
40 | o 3:41ad4fe8c795@default(secret) bk:[] amends 102a90ea7b4a3361e4082ed620918c261189a36a
41 | |
42 | | o 2:cce2c55b8965@default(secret) bk:[] changea
43 | |/
44 | o 1:102a90ea7b4a@default(secret) bk:[] addb
45 |/
46 o 0:07f494440405@default(draft) bk:[] adda
47
48 $ hg debugsuccessors
49 102a90ea7b4a 1447e1c4828d
50 102a90ea7b4a 41ad4fe8c795
51 41ad4fe8c795 1447e1c4828d
52 cce2c55b8965 000000000000