equal
deleted
inserted
replaced
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 . |