comparison tests/test-bookmarks.t @ 45845:f96fa4de5055

errors: use InputError for errors about bad label names (tags etc) Differential Revision: https://phab.mercurial-scm.org/D9327
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Nov 2020 10:35:33 -0800
parents 8d72e29ad1e0
children 95c4cca641f6
comparison
equal deleted inserted replaced
45844:3175b0e0058b 45845:f96fa4de5055
394 394
395 bookmark with reserved name 395 bookmark with reserved name
396 396
397 $ hg bookmark tip 397 $ hg bookmark tip
398 abort: the name 'tip' is reserved 398 abort: the name 'tip' is reserved
399 [255] 399 [10]
400 400
401 $ hg bookmark . 401 $ hg bookmark .
402 abort: the name '.' is reserved 402 abort: the name '.' is reserved
403 [255] 403 [10]
404 404
405 $ hg bookmark null 405 $ hg bookmark null
406 abort: the name 'null' is reserved 406 abort: the name 'null' is reserved
407 [255] 407 [10]
408 408
409 409
410 bookmark with existing name 410 bookmark with existing name
411 411
412 $ hg bookmark X2 412 $ hg bookmark X2
429 429
430 bookmark with integer name 430 bookmark with integer name
431 431
432 $ hg bookmark 10 432 $ hg bookmark 10
433 abort: cannot use an integer as a name 433 abort: cannot use an integer as a name
434 [255] 434 [10]
435 435
436 bookmark with a name that matches a node id 436 bookmark with a name that matches a node id
437 $ hg bookmark 925d80f479bb db815d6d32e6 --config "$TESTHOOK" 437 $ hg bookmark 925d80f479bb db815d6d32e6 --config "$TESTHOOK"
438 bookmark 925d80f479bb matches a changeset hash 438 bookmark 925d80f479bb matches a changeset hash
439 (did you leave a -r out of an 'hg bookmark' command?) 439 (did you leave a -r out of an 'hg bookmark' command?)
536 536
537 invalid bookmark 537 invalid bookmark
538 538
539 $ hg bookmark 'foo:bar' 539 $ hg bookmark 'foo:bar'
540 abort: ':' cannot be used in a name 540 abort: ':' cannot be used in a name
541 [255] 541 [10]
542 542
543 $ hg bookmark 'foo 543 $ hg bookmark 'foo
544 > bar' 544 > bar'
545 abort: '\n' cannot be used in a name 545 abort: '\n' cannot be used in a name
546 [255] 546 [10]
547 547
548 the bookmark extension should be ignored now that it is part of core 548 the bookmark extension should be ignored now that it is part of core
549 549
550 $ echo "[extensions]" >> $HGRCPATH 550 $ echo "[extensions]" >> $HGRCPATH
551 $ echo "bookmarks=" >> $HGRCPATH 551 $ echo "bookmarks=" >> $HGRCPATH