# HG changeset patch # User Anton Shestakov # Date 1647189730 -10800 # Node ID 9d81041f735f5e0285a09e462f07cedd0fe055dc # Parent 364ef033da03d9c258b3ef7321dfece4166a60b3 topic: make topic name warning similar to branch/tag/bookmark warnings diff -r 364ef033da03 -r 9d81041f735f hgext3rd/topic/__init__.py --- 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') diff -r 364ef033da03 -r 9d81041f735f tests/test-topic.t --- 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'