comparison tests/test-split.t @ 45853:b4694ef45db5

errors: raise more specific errors from rewriteutil Differential Revision: https://phab.mercurial-scm.org/D9330
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 16 Nov 2020 15:11:51 -0800
parents 527ce85c2e60
children c10683da6889
comparison
equal deleted inserted replaced
45852:b56feaa9b520 45853:b4694ef45db5
77 77
78 $ hg phase --public -r 'all()' 78 $ hg phase --public -r 'all()'
79 $ hg split . 79 $ hg split .
80 abort: cannot split public changesets 80 abort: cannot split public changesets
81 (see 'hg help phases' for details) 81 (see 'hg help phases' for details)
82 [255] 82 [10]
83 83
84 $ hg phase --draft -f -r 'all()' 84 $ hg phase --draft -f -r 'all()'
85 85
86 Cannot split while working directory is dirty 86 Cannot split while working directory is dirty
87 87
465 465
466 $ cd $TESTTMP/d 466 $ cd $TESTTMP/d
467 #if obsstore-off 467 #if obsstore-off
468 $ runsplit -r 1 --no-rebase 468 $ runsplit -r 1 --no-rebase
469 abort: cannot split changeset with children 469 abort: cannot split changeset with children
470 [255] 470 [10]
471 #else 471 #else
472 $ runsplit -r 1 --no-rebase >/dev/null 472 $ runsplit -r 1 --no-rebase >/dev/null
473 3 new orphan changesets 473 3 new orphan changesets
474 $ hg bookmark 474 $ hg bookmark
475 d1 2:b5c5ea414030 475 d1 2:b5c5ea414030
516 2 new orphan changesets 516 2 new orphan changesets
517 $ eval `hg tags -T '{tag}={node}\n'` 517 $ eval `hg tags -T '{tag}={node}\n'`
518 $ rm .hg/localtags 518 $ rm .hg/localtags
519 $ hg split $B --config experimental.evolution=createmarkers 519 $ hg split $B --config experimental.evolution=createmarkers
520 abort: cannot split changeset with children 520 abort: cannot split changeset with children
521 [255] 521 [10]
522 $ cat > $TESTTMP/messages <<EOF 522 $ cat > $TESTTMP/messages <<EOF
523 > Split B 523 > Split B
524 > EOF 524 > EOF
525 $ cat <<EOF | hg split $B 525 $ cat <<EOF | hg split $B
526 > y 526 > y