comparison tests/test-topic.t @ 1864:70d1191fceed

topic: allow use of topic(.) to match the p1 topic As far as I can tell this matches the behavior of branch(.) in core hg in tht it matches p1's value rather than the wdir value.
author Augie Fackler <raf@durin42.com>
date Wed, 30 Sep 2015 18:06:42 -0400
parents 565f057bdc08
children 13fc93fb7fbe
comparison
equal deleted inserted replaced
1863:29fc43f24948 1864:70d1191fceed
448 | user: test 448 | user: test
449 | date: Thu Jan 01 00:00:00 1970 +0000 449 | date: Thu Jan 01 00:00:00 1970 +0000
450 | summary: start on fran 450 | summary: start on fran
451 | 451 |
452 452
453 Move to fran, note that the topic activates, then deactivate the topic. 453 Match current topic:
454 454 $ hg topic
455 fran
456 $ hg log -r 'topic(.)'
457 (no output is expected)
455 $ hg co fran 458 $ hg co fran
456 switching to topic fran 459 switching to topic fran
457 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 460 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
461 $ hg log -r 'topic(.)'
462 changeset: 9:0469d521db49
463 tag: tip
464 topic: fran
465 parent: 3:a53952faf762
466 user: test
467 date: Thu Jan 01 00:00:00 1970 +0000
468 summary: start on fran
469
470
471 Deactivate the topic.
458 $ hg topics 472 $ hg topics
459 * fran 473 * fran
460 $ hg topics --clear 474 $ hg topics --clear
461 $ echo fran? >> beta 475 $ echo fran? >> beta
462 $ hg ci -m 'fran?' 476 $ hg ci -m 'fran?'