tests/test-topic-tutorial.t
changeset 3021 5f4c42d4f2e8
parent 3016 d12c82fd1143
child 3027 b220e2f5ebd5
equal deleted inserted replaced
3020:361d83261d7a 3021:5f4c42d4f2e8
   701 
   701 
   702 For this tutorial, we'll add the config at the repository level:
   702 For this tutorial, we'll add the config at the repository level:
   703 
   703 
   704   $ cat << EOF >> .hg/hgrc
   704   $ cat << EOF >> .hg/hgrc
   705   > [experimental]
   705   > [experimental]
   706   > enforce-topic = yes
   706   > topic-mode = enforce
   707   > EOF
   707   > EOF
   708 
   708 
   709 You can also use `hg config --edit` to update your mercurial configuration.
   709 You can also use `hg config --edit` to update your mercurial configuration.
   710 
   710 
   711 
   711 
   712 Once enforcement is turned on. New local commit will be denied if no topic is active.
   712 Once enforcement is turned on. New local commit will be denied if no topic is active.
   713 
   713 
   714   $ echo sickle >> shopping
   714   $ echo sickle >> shopping
   715   $ hg commit -m 'Adding sickle'
   715   $ hg commit -m 'Adding sickle'
   716   abort: no active topic
   716   abort: no active topic
   717   (set a current topic or use '--config experimental.enforce-topic=no' to commit without a topic)
   717   (set a current topic or use '--config experimental.topic-mode=off' to commit without a topic)
   718   [255]
   718   [255]
   719 
   719 
   720 Ok, let's clean this up and delve into multiple topics.
   720 Ok, let's clean this up and delve into multiple topics.
   721 
   721 
   722   $ hg revert .
   722   $ hg revert .