diff tests/test-topic.t @ 6320:0c780d972350

topic: use check_incompatible_arguments() for --list with --clear or --rev
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 07 Apr 2022 20:42:56 +0300
parents 8c664ed9c103
children 9a41c3c293ae 3d16c9a8cf3a
line wrap: on
line diff
--- a/tests/test-topic.t	Thu Apr 07 20:28:11 2022 +0300
+++ b/tests/test-topic.t	Thu Apr 07 20:42:56 2022 +0300
@@ -261,6 +261,9 @@
   $ hg topics --clear somerandomtopic
   abort: cannot use --clear when setting a topic
   [10]
+  $ hg topics --list --clear
+  abort: cannot specify both --list and --clear
+  [10]
 
 Trying some invalid topicnames