diff 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
line wrap: on
line diff
--- a/tests/test-topic.t	Wed Sep 30 18:05:27 2015 -0400
+++ b/tests/test-topic.t	Wed Sep 30 18:06:42 2015 -0400
@@ -450,11 +450,25 @@
   |  summary:     start on fran
   |
 
-Move to fran, note that the topic activates, then deactivate the topic.
-
+Match current topic:
+  $ hg topic
+     fran
+  $ hg log -r 'topic(.)'
+(no output is expected)
   $ hg co fran
   switching to topic fran
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ hg log -r 'topic(.)'
+  changeset:   9:0469d521db49
+  tag:         tip
+  topic:       fran
+  parent:      3:a53952faf762
+  user:        test
+  date:        Thu Jan 01 00:00:00 1970 +0000
+  summary:     start on fran
+  
+
+Deactivate the topic.
   $ hg topics
    * fran
   $ hg topics --clear