comparison tests/test-topic.t @ 5892:34cd08a46b6d mercurial-5.6

test-compat: merge mercurial-5.7 into mercurial-5.6
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 24 Apr 2021 20:01:39 +0800
parents fd039a7f0c3c
children 664f62e57231 43c4db536990
comparison
equal deleted inserted replaced
5891:b13cb2d500ae 5892:34cd08a46b6d
269 269
270 Trying some invalid topicnames 270 Trying some invalid topicnames
271 271
272 $ hg topic '.' 272 $ hg topic '.'
273 abort: the name '.' is reserved 273 abort: the name '.' is reserved
274 [10] 274 [255]
275 $ hg topic null 275 $ hg topic null
276 abort: the name 'null' is reserved 276 abort: the name 'null' is reserved
277 [10] 277 [255]
278 $ hg topic tip 278 $ hg topic tip
279 abort: the name 'tip' is reserved 279 abort: the name 'tip' is reserved
280 [10] 280 [255]
281 $ hg topic 12345 281 $ hg topic 12345
282 abort: cannot use an integer as a name 282 abort: cannot use an integer as a name
283 [10] 283 [255]
284 $ hg topic ' ' 284 $ hg topic ' '
285 abort: topic name cannot consist entirely of whitespaces 285 abort: topic name cannot consist entirely of whitespaces
286 [255] 286 [255]
287 287
288 $ hg topic 'a12#45' 288 $ hg topic 'a12#45'
315 HG: user: test 315 HG: user: test
316 HG: topic 'topicflag' 316 HG: topic 'topicflag'
317 HG: branch 'default' 317 HG: branch 'default'
318 HG: changed alpha 318 HG: changed alpha
319 abort: empty commit message 319 abort: empty commit message
320 [10] 320 [255]
321 $ hg revert alpha 321 $ hg revert alpha
322 $ hg topic 322 $ hg topic
323 * topicflag (0 changesets) 323 * topicflag (0 changesets)
324 324
325 Make a topic 325 Make a topic
647 $ cd ../brain 647 $ cd ../brain
648 $ hg topics 648 $ hg topics
649 * query (1 changesets) 649 * query (1 changesets)
650 $ hg pull ../pinky -r narf 650 $ hg pull ../pinky -r narf
651 pulling from ../pinky 651 pulling from ../pinky
652 abort: unknown revision 'narf' 652 abort: unknown revision 'narf'!
653 [255] 653 [255]
654 $ hg pull ../pinky -r default 654 $ hg pull ../pinky -r default
655 pulling from ../pinky 655 pulling from ../pinky
656 searching for changes 656 searching for changes
657 adding changesets 657 adding changesets
821 $ tlog 'topic(topic(fran))' 821 $ tlog 'topic(topic(fran))'
822 9: fran 822 9: fran
823 $ tlog 'topic(wdir())' 823 $ tlog 'topic(wdir())'
824 9: fran 824 9: fran
825 $ tlog 'topic(nonsense)' 825 $ tlog 'topic(nonsense)'
826 abort: unknown revision 'nonsense' 826 abort: unknown revision 'nonsense'!
827 [255] 827 [255]
828 828
829 Pattern matching in topic() revset 829 Pattern matching in topic() revset
830 $ tlog 'topic("re:nonsense")' 830 $ tlog 'topic("re:nonsense")'
831 $ tlog 'topic("literal:nonsense")' 831 $ tlog 'topic("literal:nonsense")'
832 abort: topic 'nonsense' does not exist 832 abort: topic 'nonsense' does not exist!
833 [255] 833 [255]
834 834
835 Deactivate the topic. 835 Deactivate the topic.
836 $ hg topics 836 $ hg topics
837 * fran (1 changesets) 837 * fran (1 changesets)