Mercurial > evolve
comparison tests/test-obsolete-rebase.t @ 282:05ab164c6593
obsolete: handle rebase --collapse
Recording obsolete in concludenode() did not work for --collapse because
only the first revision was passed to the call. The new strategy is to
track the rebase state in defineparents() and concludenode() and to
create markers only after a successful non-abort call. In theory, this
should also fix --continue/--abort cases.
The change in test-stabilize-order.t comes from concludenode() no longer
creating obsolete marker. stabilize command was actually duplicating
markers, once in concludenode(), once explicitely.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Tue, 19 Jun 2012 18:05:23 +0200 |
parents | fd43e3908f09 |
children | 8d1a8eeb5a84 |
comparison
equal
deleted
inserted
replaced
281:258169d3428b | 282:05ab164c6593 |
---|---|
67 o 0:07f494440405@default(draft) adda | 67 o 0:07f494440405@default(draft) adda |
68 | 68 |
69 $ hg debugsuccessors | 69 $ hg debugsuccessors |
70 102a90ea7b4a 03f017c74faa | 70 102a90ea7b4a 03f017c74faa |
71 4e322f7ce8e3 000000000000 | 71 4e322f7ce8e3 000000000000 |
72 | |
73 Test rebase --collapse | |
74 | |
75 $ hg up 0 | |
76 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
77 $ echo c > c | |
78 $ hg ci -Am addc | |
79 adding c | |
80 created new head | |
81 $ echo c >> c | |
82 $ hg ci -m changec | |
83 $ hg rebase --collapse -d 1 | |
84 merging c | |
85 $ glog --hidden | |
86 @ 7:a7773ffa7edc@default(draft) Collapsed revision | |
87 | | |
88 | o 6:03f31481307a@default(secret) changec | |
89 | | | |
90 | o 5:076e9b2ffbe1@default(secret) addc | |
91 | | | |
92 | | o 4:4e322f7ce8e3@foo(secret) changea | |
93 | |/ | |
94 +---o 3:03f017c74faa@default(draft) addb | |
95 | | | |
96 | | o 2:102a90ea7b4a@default(secret) addb | |
97 | |/ | |
98 o | 1:540395c44225@default(draft) changea | |
99 |/ | |
100 o 0:07f494440405@default(draft) adda | |
101 | |
102 $ hg debugsuccessors | |
103 03f31481307a a7773ffa7edc | |
104 076e9b2ffbe1 a7773ffa7edc | |
105 102a90ea7b4a 03f017c74faa | |
106 4e322f7ce8e3 000000000000 |