comparison tests/test-rebase-obsolete.t @ 17613:aafc521668d8

rebase: properly handle --collapse when creating obsolescence marker In collapse mode, that content of state is not suitable to compute obsolescence markers. We explicitly pass the resulting revision instead and use it as the successors for all elements of the rebased set.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 18 Sep 2012 23:42:27 +0200
parents fc2a6114f0a0
children 9e2dc0d292cd
comparison
equal deleted inserted replaced
17612:fc2a6114f0a0 17613:aafc521668d8
171 32af7686d403cf45b5d95f2d70cebea587ac806a 5ae4c968c6aca831df823664e706c9d4aa34473d 0 {'date': '*', 'user': 'test'} (glob) 171 32af7686d403cf45b5d95f2d70cebea587ac806a 5ae4c968c6aca831df823664e706c9d4aa34473d 0 {'date': '*', 'user': 'test'} (glob)
172 172
173 173
174 $ cd .. 174 $ cd ..
175 175
176 collapse rebase
177 ---------------------------------
178
179 $ hg clone base collapse
180 updating to branch default
181 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
182 $ cd collapse
183 $ hg rebase -s 42ccdea3bb16 -d eea13746799a --collapse
184 $ hg log -G
185 @ 8:4dc2197e807b Collapsed revision
186 |
187 | o 7:02de42196ebe H
188 | |
189 o | 6:eea13746799a G
190 |\|
191 | o 5:24b6387c8c8c F
192 | |
193 o | 4:9520eea781bc E
194 |/
195 o 0:cd010b8cd998 A
196
197 $ hg log --hidden -G
198 @ 8:4dc2197e807b Collapsed revision
199 |
200 | o 7:02de42196ebe H
201 | |
202 o | 6:eea13746799a G
203 |\|
204 | o 5:24b6387c8c8c F
205 | |
206 o | 4:9520eea781bc E
207 |/
208 | x 3:32af7686d403 D
209 | |
210 | x 2:5fddd98957c8 C
211 | |
212 | x 1:42ccdea3bb16 B
213 |/
214 o 0:cd010b8cd998 A
215
216 $ hg id --debug
217 4dc2197e807bae9817f09905b50ab288be2dbbcf tip
218 $ hg debugobsolete
219 42ccdea3bb16d28e1848c95fe2e44c000f3f21b1 4dc2197e807bae9817f09905b50ab288be2dbbcf 0 {'date': '*', 'user': 'test'} (glob)
220 5fddd98957c8a54a4d436dfe1da9d87f21a1b97b 4dc2197e807bae9817f09905b50ab288be2dbbcf 0 {'date': '*', 'user': 'test'} (glob)
221 32af7686d403cf45b5d95f2d70cebea587ac806a 4dc2197e807bae9817f09905b50ab288be2dbbcf 0 {'date': '*', 'user': 'test'} (glob)
222
223 $ cd ..
224