comparison tests/test-topic.t @ 6318:3e488afe62f5

topic: use compat.InputError for conflicting CLI flags
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 07 Apr 2022 20:02:45 +0300
parents caf302fb8f4d
children 8c664ed9c103
comparison
equal deleted inserted replaced
6317:53d63b608230 6318:3e488afe62f5
252 $ hg topics --current 252 $ hg topics --current
253 no active topic 253 no active topic
254 [1] 254 [1]
255 $ hg topics --current somerandomtopic 255 $ hg topics --current somerandomtopic
256 abort: cannot use --current when setting a topic 256 abort: cannot use --current when setting a topic
257 [255] 257 [10]
258 $ hg topics --current --clear 258 $ hg topics --current --clear
259 abort: cannot use --current and --clear 259 abort: cannot use --current and --clear
260 [255] 260 [10]
261 $ hg topics --clear somerandomtopic 261 $ hg topics --clear somerandomtopic
262 abort: cannot use --clear when setting a topic 262 abort: cannot use --clear when setting a topic
263 [255] 263 [10]
264 264
265 Trying some invalid topicnames 265 Trying some invalid topicnames
266 266
267 $ hg topic '.' 267 $ hg topic '.'
268 abort: the name '.' is reserved 268 abort: the name '.' is reserved
1152 topic1990 (1990-01-01 by foo, 1 changesets) 1152 topic1990 (1990-01-01 by foo, 1 changesets)
1153 * topic1970 (1970-01-01 by test, 1 changesets) 1153 * topic1970 (1970-01-01 by test, 1 changesets)
1154 1154
1155 $ hg topics --age random 1155 $ hg topics --age random
1156 abort: cannot use --age while setting a topic 1156 abort: cannot use --age while setting a topic
1157 [255] 1157 [10]
1158 $ cd .. 1158 $ cd ..
1159 1159
1160 Test that topics doesn't confuse branchheads checking logic 1160 Test that topics doesn't confuse branchheads checking logic
1161 ----------------------------------------------------------- 1161 -----------------------------------------------------------
1162 1162