Mercurial > evolve
comparison tests/test-evolve-wdir.t @ 6102:01bc197f31d3
tests: cover a remaining case of obsolete wdir parent evolution
This patch adds a test case where a cset is split over
multiple topological branches.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Fri, 03 Sep 2021 23:13:13 +0530 |
parents | 431bf23df350 |
children | f138aea6e26b |
comparison
equal
deleted
inserted
replaced
6101:431bf23df350 | 6102:01bc197f31d3 |
---|---|
119 @ 5:767c654afe84 (draft): u_B | 119 @ 5:767c654afe84 (draft): u_B |
120 | | 120 | |
121 o 0:9f0188af4c58 (draft): c_A | 121 o 0:9f0188af4c58 (draft): c_A |
122 | 122 |
123 | 123 |
124 D. Obsolete wdp with multiple successor (split rewriting) | 124 D. Obsolete wdp with multiple successors (split rewriting) |
125 ---------------------------------------------------------- | 125 ---------------------------------------------------------- |
126 | 126 |
127 when split csets are on a single topological branch | 127 when split csets are on a single topological branch |
128 $ hg up -r 'desc(c_A)' | 128 $ hg up -r 'desc(c_A)' |
129 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 129 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
187 test that given hint works | 187 test that given hint works |
188 $ hg evolve | 188 $ hg evolve |
189 update:[9] c_XYZ | 189 update:[9] c_XYZ |
190 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 190 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
191 working directory is now at b7ec9e61ccbf | 191 working directory is now at b7ec9e61ccbf |
192 | |
193 when split csets are on multiple topological branches | |
194 $ hg rebase -r 'max(desc(c_XYZ))' -d 'desc(u_B)' | |
195 rebasing 9:b7ec9e61ccbf tip "c_XYZ" | |
196 $ hg glog | |
197 @ 10:cadaa9246c55 (draft): c_XYZ | |
198 | | |
199 | o 8:b99a391251cc (draft): c_XYZ | |
200 | | | |
201 | o 7:1eb7dbbcecbd (draft): c_XYZ | |
202 | | | |
203 o | 5:767c654afe84 (draft): u_B | |
204 |/ | |
205 o 0:9f0188af4c58 (draft): c_A | |
206 | |
207 $ hg up -r 'min(desc(c_XYZ))' --hidden | |
208 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
209 updated to hidden changeset c8b6cf6ce628 | |
210 (hidden revision 'c8b6cf6ce628' was split as: 1eb7dbbcecbd, b99a391251cc and 1 more) | |
211 working directory parent is obsolete! (c8b6cf6ce628) | |
212 (use 'hg evolve' to update to its tipmost successor: 1eb7dbbcecbd, b99a391251cc and 1 more) | |
213 | |
214 $ hg evolve --config ui.interactive=True << EOF | |
215 > q | |
216 > EOF | |
217 changeset c8b6cf6ce628 split over multiple topological branches, choose an evolve destination: | |
218 1: [b99a391251cc] c_XYZ | |
219 2: [cadaa9246c55] c_XYZ | |
220 q: quit the prompt | |
221 enter the index of the revision you want to select: q | |
222 abort: user quit | |
223 [250] | |
224 | |
225 $ hg evolve --config ui.interactive=True << EOF | |
226 > 1 | |
227 > EOF | |
228 changeset c8b6cf6ce628 split over multiple topological branches, choose an evolve destination: | |
229 1: [b99a391251cc] c_XYZ | |
230 2: [cadaa9246c55] c_XYZ | |
231 q: quit the prompt | |
232 enter the index of the revision you want to select: 1 | |
233 update:[8] c_XYZ | |
234 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
235 working directory is now at b99a391251cc |