Mercurial > evolve
comparison tests/test-topic.t @ 2733:adfbb984ebbb
topics: check for topic on commit before a user enters message
We have a enforce-topic cofig which can forbid user to commit without a topic on
it. We used to check topic on a commit after the user enters message, but we
should fail early.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 14 Jul 2017 00:54:48 +0530 |
parents | d39942773163 |
children | 9fd6c8efda5b |
comparison
equal
deleted
inserted
replaced
2732:4b5caa509df8 | 2733:adfbb984ebbb |
---|---|
847 $ hg add a | 847 $ hg add a |
848 $ hg ci -m "Added a" | 848 $ hg ci -m "Added a" |
849 abort: no active topic | 849 abort: no active topic |
850 (set a current topic or use '--config experimental.enforce-topic=no' to commit without a topic) | 850 (set a current topic or use '--config experimental.enforce-topic=no' to commit without a topic) |
851 [255] | 851 [255] |
852 | |
853 (same test, checking we abort before the editor) | |
854 | |
855 $ EDITOR=cat hg ci -m "Added a" --edit | |
856 abort: no active topic | |
857 (set a current topic or use '--config experimental.enforce-topic=no' to commit without a topic) | |
858 [255] | |
852 $ hg ci -m "added a" --config experimental.enforce-topic=no | 859 $ hg ci -m "added a" --config experimental.enforce-topic=no |
853 $ hg log | 860 $ hg log |
854 changeset: 0:a154386e50d1 | 861 changeset: 0:a154386e50d1 |
855 tag: tip | 862 tag: tip |
856 user: test | 863 user: test |