comparison tests/test-topic-change.t @ 3039:5b24ed4b3e9c

tests: add test showing change of phase while changing topic on secret commit
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 05 Oct 2017 19:30:22 +0530
parents 103244e34a9c
children a05b6580f71c
comparison
equal deleted inserted replaced
3038:103244e34a9c 3039:5b24ed4b3e9c
355 | Added b () 355 | Added b ()
356 | 356 |
357 o 8:86a186070af2 {} 357 o 8:86a186070af2 {}
358 Added a () 358 Added a ()
359 359
360 Changing topic on secret changesets
361 -----------------------------------
362
363 $ hg up 26
364 switching to topic bar
365 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
366 (leaving bookmark bookboo)
367
368 $ hg phase -r . -s -f
369 $ hg phase -r .
370 26: secret
371
372 $ hg topic -r . watwat
373 switching to topic watwat
374 changed topic on 1 changes
375
376 $ hg glog
377 @ 33:894983f69e69 {watwat}
378 | Added g ()
379 |
380 | o 32:1b83d11095b9 {movebook}
381 | | Added h (book bookboo)
382 | |
383 | x 26:7c76c271395f {bar}
384 |/ Added g ()
385 |
386 o 25:7f26084dfaf1 {bar}
387 | Added f ()
388 |
389 o 24:b1f05e9ba0b5 {bar}
390 | Added e ()
391 |
392 o 23:f9869da2286e {foo}
393 | Added d ()
394 |
395 o 22:1b88140feefe {foobar}
396 | Added c ()
397 |
398 o 21:c39cabfcbbf7 {foobar}
399 | Added b ()
400 |
401 o 8:86a186070af2 {}
402 Added a ()
403
404 XXX: the phase must be preserved and hence must be secret
405
406 $ hg phase -r .
407 33: draft