Mercurial > evolve
comparison tests/test-evolve-topic.t @ 3593:b92114f201c9 mercurial-4.1
test-compat: merge mercurial-4.2 into mercurial-4.1
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 21 Mar 2018 16:35:18 +0100 |
parents | 98941c28f3e2 |
children |
comparison
equal
deleted
inserted
replaced
3592:7a5c3175015e | 3593:b92114f201c9 |
---|---|
265 t0^ add eee (base) | 265 t0^ add eee (base) |
266 | 266 |
267 $ hg prev | 267 $ hg prev |
268 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 268 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
269 [20] add fff | 269 [20] add fff |
270 | |
271 Testing issue 5708 when we are on obsolete changeset and there is active topic | |
272 ------------------------------------------------------------------------------ | |
273 | |
274 $ hg log --graph | |
275 @ 20 - {bar} 793eb6370b2d add fff (draft) | |
276 | | |
277 | o 19 - {bar} 9bf430c106b7 add jjj (draft) | |
278 | | | |
279 | o 18 - {bar} d2dc89c57700 add iii (draft) | |
280 | | | |
281 | o 17 - {bar} 20bc4d02aa62 add hhh (draft) | |
282 | | | |
283 | o 16 - {bar} 16d6f664b17c add ggg (draft) | |
284 | | | |
285 | x 15 - {foo} 070c5573d8f9 add fff (draft) | |
286 |/ | |
287 o 14 - {foo} 42b49017ff90 add eee (draft) | |
288 | | |
289 o 11 - {foo} d9cacd156ffc add ddd (draft) | |
290 | | |
291 o 2 - {foo} cced9bac76e3 add ccc (draft) | |
292 | | |
293 o 1 - {} a4dbed0837ea add bbb (draft) | |
294 | | |
295 o 0 - {} 199cc73e9a0b add aaa (draft) | |
296 | |
297 | |
298 $ hg topic | |
299 * bar (5 changesets, 4 troubled) | |
300 foo (3 changesets) | |
301 | |
302 When the current topic, obsoleted changesets topic and successor topic are same | |
303 | |
304 $ hg up 20bc4d02aa62 | |
305 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
306 $ echo foobar >> hhh | |
307 $ hg amend | |
308 $ hg up 20bc4d02aa62 | |
309 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
310 working directory parent is obsolete! (20bc4d02aa62) | |
311 (use 'hg evolve' to update to its successor: d834582d9ee3) | |
312 $ hg log -Gr 14:: | |
313 o 22 - {bar} d834582d9ee3 add hhh (draft) | |
314 | | |
315 | o 20 - {bar} 793eb6370b2d add fff (draft) | |
316 | | | |
317 | | o 19 - {bar} 9bf430c106b7 add jjj (draft) | |
318 | | | | |
319 | | o 18 - {bar} d2dc89c57700 add iii (draft) | |
320 | | | | |
321 +---@ 17 - {bar} 20bc4d02aa62 add hhh (draft) | |
322 | | | |
323 o | 16 - {bar} 16d6f664b17c add ggg (draft) | |
324 | | | |
325 x | 15 - {foo} 070c5573d8f9 add fff (draft) | |
326 |/ | |
327 o 14 - {foo} 42b49017ff90 add eee (draft) | |
328 | | |
329 ~ | |
330 | |
331 $ hg prev | |
332 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
333 [16] add ggg | |
334 | |
335 When the current topic and successors topic are same, but obsolete cset has | |
336 different topic | |
337 | |
338 $ hg rebase -s d2dc89c57700 -d d834582d9ee3 --config extensions.rebase= | |
339 rebasing 18:d2dc89c57700 "add iii" | |
340 rebasing 19:9bf430c106b7 "add jjj" | |
341 $ hg log -Gr 42b49017ff90:: | |
342 o 24 - {bar} 7542e76aba2c add jjj (draft) | |
343 | | |
344 o 23 - {bar} 7858bd7e9906 add iii (draft) | |
345 | | |
346 o 22 - {bar} d834582d9ee3 add hhh (draft) | |
347 | | |
348 | o 20 - {bar} 793eb6370b2d add fff (draft) | |
349 | | | |
350 @ | 16 - {bar} 16d6f664b17c add ggg (draft) | |
351 | | | |
352 x | 15 - {foo} 070c5573d8f9 add fff (draft) | |
353 |/ | |
354 o 14 - {foo} 42b49017ff90 add eee (draft) | |
355 | | |
356 ~ | |
357 | |
358 $ hg up 070c5573d8f9 | |
359 switching to topic foo | |
360 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
361 working directory parent is obsolete! (070c5573d8f9) | |
362 (use 'hg evolve' to update to its successor: 793eb6370b2d) | |
363 | |
364 $ hg topic bar | |
365 | |
366 $ hg prev | |
367 no parent in topic "bar" | |
368 (do you want --no-topic) | |
369 [1] | |
370 | |
371 When current topic and obsolete cset topic are same but successor has different | |
372 one | |
373 | |
374 $ hg up 070c5573d8f9 | |
375 switching to topic foo | |
376 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
377 $ hg prev | |
378 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
379 [14] add eee |