Mercurial > evolve
comparison tests/test-evolve-orphan-split.t @ 6099:435dfa125d89
picksplitsuccessor: refactor and rename this method for better quality
This patch modify the prompt message and make it more generic by removing the
`evolvecand` param, which would help us in using this method at other places
as well.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Tue, 27 Jul 2021 23:32:47 +0530 |
parents | 1cbafebe874b |
children |
comparison
equal
deleted
inserted
replaced
6098:442771901e01 | 6099:435dfa125d89 |
---|---|
191 () draft | 191 () draft |
192 | 192 |
193 $ hg evolve --dry-run <<EOF | 193 $ hg evolve --dry-run <<EOF |
194 > 1 | 194 > 1 |
195 > EOF | 195 > EOF |
196 ancestor of 'd48a30875f01' split over multiple topological branches. | 196 changeset f89e4764f2ed split over multiple topological branches, choose an evolve destination: |
197 choose an evolve destination: | |
198 1: [f2632392aefe] added a b c | 197 1: [f2632392aefe] added a b c |
199 2: [7f87764e5b64] added a b c | 198 2: [7f87764e5b64] added a b c |
200 q: quit the prompt | 199 q: quit the prompt |
201 enter the index of the revision you want to select: 1 | 200 enter the index of the revision you want to select: 1 |
202 move:[7] added d | 201 move:[7] added d |
204 hg rebase -r d48a30875f01 -d f2632392aefe | 203 hg rebase -r d48a30875f01 -d f2632392aefe |
205 | 204 |
206 $ hg evolve --dry-run <<EOF | 205 $ hg evolve --dry-run <<EOF |
207 > 2 | 206 > 2 |
208 > EOF | 207 > EOF |
209 ancestor of 'd48a30875f01' split over multiple topological branches. | 208 changeset f89e4764f2ed split over multiple topological branches, choose an evolve destination: |
210 choose an evolve destination: | |
211 1: [f2632392aefe] added a b c | 209 1: [f2632392aefe] added a b c |
212 2: [7f87764e5b64] added a b c | 210 2: [7f87764e5b64] added a b c |
213 q: quit the prompt | 211 q: quit the prompt |
214 enter the index of the revision you want to select: 2 | 212 enter the index of the revision you want to select: 2 |
215 move:[7] added d | 213 move:[7] added d |
220 (this should move its own test file when we use it at multiple places) | 218 (this should move its own test file when we use it at multiple places) |
221 | 219 |
222 $ hg evolve --all <<EOF | 220 $ hg evolve --all <<EOF |
223 > foo | 221 > foo |
224 > EOF | 222 > EOF |
225 ancestor of 'd48a30875f01' split over multiple topological branches. | 223 changeset f89e4764f2ed split over multiple topological branches, choose an evolve destination: |
226 choose an evolve destination: | |
227 1: [f2632392aefe] added a b c | 224 1: [f2632392aefe] added a b c |
228 2: [7f87764e5b64] added a b c | 225 2: [7f87764e5b64] added a b c |
229 q: quit the prompt | 226 q: quit the prompt |
230 enter the index of the revision you want to select: foo | 227 enter the index of the revision you want to select: foo |
231 invalid value 'foo' entered for index | 228 invalid value 'foo' entered for index |
232 could not solve instability, ambiguous destination: parent split across two branches | 229 could not solve instability, ambiguous destination: parent split across two branches |
233 | 230 |
234 $ hg evolve --all <<EOF | 231 $ hg evolve --all <<EOF |
235 > 4 | 232 > 4 |
236 > EOF | 233 > EOF |
237 ancestor of 'd48a30875f01' split over multiple topological branches. | 234 changeset f89e4764f2ed split over multiple topological branches, choose an evolve destination: |
238 choose an evolve destination: | |
239 1: [f2632392aefe] added a b c | 235 1: [f2632392aefe] added a b c |
240 2: [7f87764e5b64] added a b c | 236 2: [7f87764e5b64] added a b c |
241 q: quit the prompt | 237 q: quit the prompt |
242 enter the index of the revision you want to select: 4 | 238 enter the index of the revision you want to select: 4 |
243 invalid value '4' entered for index | 239 invalid value '4' entered for index |
244 could not solve instability, ambiguous destination: parent split across two branches | 240 could not solve instability, ambiguous destination: parent split across two branches |
245 | 241 |
246 $ hg evolve --all <<EOF | 242 $ hg evolve --all <<EOF |
247 > -1 | 243 > -1 |
248 > EOF | 244 > EOF |
249 ancestor of 'd48a30875f01' split over multiple topological branches. | 245 changeset f89e4764f2ed split over multiple topological branches, choose an evolve destination: |
250 choose an evolve destination: | |
251 1: [f2632392aefe] added a b c | 246 1: [f2632392aefe] added a b c |
252 2: [7f87764e5b64] added a b c | 247 2: [7f87764e5b64] added a b c |
253 q: quit the prompt | 248 q: quit the prompt |
254 enter the index of the revision you want to select: -1 | 249 enter the index of the revision you want to select: -1 |
255 invalid value '-1' entered for index | 250 invalid value '-1' entered for index |
256 could not solve instability, ambiguous destination: parent split across two branches | 251 could not solve instability, ambiguous destination: parent split across two branches |
257 | 252 |
258 $ hg evolve --all <<EOF | 253 $ hg evolve --all <<EOF |
259 > q | 254 > q |
260 > EOF | 255 > EOF |
261 ancestor of 'd48a30875f01' split over multiple topological branches. | 256 changeset f89e4764f2ed split over multiple topological branches, choose an evolve destination: |
262 choose an evolve destination: | |
263 1: [f2632392aefe] added a b c | 257 1: [f2632392aefe] added a b c |
264 2: [7f87764e5b64] added a b c | 258 2: [7f87764e5b64] added a b c |
265 q: quit the prompt | 259 q: quit the prompt |
266 enter the index of the revision you want to select: q | 260 enter the index of the revision you want to select: q |
267 could not solve instability, ambiguous destination: parent split across two branches | 261 could not solve instability, ambiguous destination: parent split across two branches |
269 Doing the evolve with the interactive prompt | 263 Doing the evolve with the interactive prompt |
270 | 264 |
271 $ hg evolve --all <<EOF | 265 $ hg evolve --all <<EOF |
272 > 1 | 266 > 1 |
273 > EOF | 267 > EOF |
274 ancestor of 'd48a30875f01' split over multiple topological branches. | 268 changeset f89e4764f2ed split over multiple topological branches, choose an evolve destination: |
275 choose an evolve destination: | |
276 1: [f2632392aefe] added a b c | 269 1: [f2632392aefe] added a b c |
277 2: [7f87764e5b64] added a b c | 270 2: [7f87764e5b64] added a b c |
278 q: quit the prompt | 271 q: quit the prompt |
279 enter the index of the revision you want to select: 1 | 272 enter the index of the revision you want to select: 1 |
280 move:[7] added d | 273 move:[7] added d |