comparison tests/test-histedit-edit.t @ 45895:fc4fb2f17dd4

errors: use exit code 10 for parse errors Now that `ParseError`s raised while reading the config file has been converted into `ConfigError`s, the remaining parse errors should all be "input errors" (i.e. exit code 10), according to https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. Differential Revision: https://phab.mercurial-scm.org/D9332
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 16 Nov 2020 16:00:50 -0800
parents 527ce85c2e60
children 3f82a915ab2a
comparison
equal deleted inserted replaced
45894:9dc1351d0b5f 45895:fc4fb2f17dd4
461 > mv tmp "\$1" 461 > mv tmp "\$1"
462 > EOF 462 > EOF
463 $ HGEDITOR="sh ../edit.sh" hg histedit 2 463 $ HGEDITOR="sh ../edit.sh" hg histedit 2
464 warning: histedit rules saved to: .hg/histedit-last-edit.txt 464 warning: histedit rules saved to: .hg/histedit-last-edit.txt
465 hg: parse error: first changeset cannot use verb "fold" 465 hg: parse error: first changeset cannot use verb "fold"
466 [255] 466 [10]
467 $ cat .hg/histedit-last-edit.txt 467 $ cat .hg/histedit-last-edit.txt
468 fold 0012be4a27ea 2 extend a 468 fold 0012be4a27ea 2 extend a
469 469
470 # Edit history between 0012be4a27ea and 0012be4a27ea 470 # Edit history between 0012be4a27ea and 0012be4a27ea
471 # 471 #