tests/test-topic.t
changeset 2985 f63c97c01f92
parent 2984 30f6030dca8f
child 2986 4746b92cc1f8
equal deleted inserted replaced
2984:30f6030dca8f 2985:f63c97c01f92
   151   $ echo topic work >> alpha
   151   $ echo topic work >> alpha
   152   $ hg ci -m 'start on narf'
   152   $ hg ci -m 'start on narf'
   153   $ hg co .^
   153   $ hg co .^
   154   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   154   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   155   $ hg topic fran
   155   $ hg topic fran
       
   156   marked working directory as topic: fran
   156   $ hg topics
   157   $ hg topics
   157    * fran
   158    * fran
   158      narf
   159      narf
   159   $ hg topics --current
   160   $ hg topics --current
   160   fran
   161   fran
   312 Because the change is public, we won't inherit the topic from narf.
   313 Because the change is public, we won't inherit the topic from narf.
   313 
   314 
   314   $ hg topic
   315   $ hg topic
   315   $ echo what >> alpha
   316   $ echo what >> alpha
   316   $ hg topic query
   317   $ hg topic query
       
   318   marked working directory as topic: query
   317   $ hg ci -m 'what is narf, pinky?'
   319   $ hg ci -m 'what is narf, pinky?'
   318   $ hg log -Gl2
   320   $ hg log -Gl2
   319   @  changeset:   5:c01515cfc331
   321   @  changeset:   5:c01515cfc331
   320   |  tag:         tip
   322   |  tag:         tip
   321   |  topic:       query
   323   |  topic:       query
   727   |
   729   |
   728 
   730 
   729 Amend a topic
   731 Amend a topic
   730 
   732 
   731   $ hg topic watwat
   733   $ hg topic watwat
       
   734   marked working directory as topic: watwat
   732   $ hg ci --amend
   735   $ hg ci --amend
   733   $ hg log -Gr 'draft()'
   736   $ hg log -Gr 'draft()'
   734   @  changeset:   15:6c40a4c21bbe
   737   @  changeset:   15:6c40a4c21bbe
   735   |  tag:         tip
   738   |  tag:         tip
   736   |  topic:       watwat
   739   |  topic:       watwat