Mercurial > evolve
changeset 6205:9d81041f735f
topic: make topic name warning similar to branch/tag/bookmark warnings
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 13 Mar 2022 19:42:10 +0300 |
parents | 364ef033da03 |
children | 2ec9c87e8574 |
files | hgext3rd/topic/__init__.py tests/test-topic.t |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Sun Mar 13 18:44:14 2022 +0300 +++ b/hgext3rd/topic/__init__.py Sun Mar 13 19:42:10 2022 +0300 @@ -823,7 +823,7 @@ if topic: topic = topic.strip() if not topic: - raise error.Abort(_(b"topic name cannot consist entirely of whitespaces")) + raise error.Abort(_(b"topic names cannot consist entirely of whitespace")) # Have some restrictions on the topic name just like bookmark name scmutil.checknewlabel(repo, topic, b'topic')
--- a/tests/test-topic.t Sun Mar 13 18:44:14 2022 +0300 +++ b/tests/test-topic.t Sun Mar 13 19:42:10 2022 +0300 @@ -277,7 +277,7 @@ abort: cannot use an integer as a name [10] $ hg topic ' ' - abort: topic name cannot consist entirely of whitespaces + abort: topic names cannot consist entirely of whitespace [255] $ hg topic 'a12#45'