Mercurial > hg
comparison tests/test-split.t @ 45876:568c05d8f3d2
errors: raise InputError in `hg split`
Differential Revision: https://phab.mercurial-scm.org/D9338
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 17 Nov 2020 15:51:09 -0800 |
parents | 8357e0e81bb7 |
children | ac362d5a7893 |
comparison
equal
deleted
inserted
replaced
45875:e641bb2a6159 | 45876:568c05d8f3d2 |
---|---|
49 [1] | 49 [1] |
50 | 50 |
51 $ hg commit -m empty --config ui.allowemptycommit=1 | 51 $ hg commit -m empty --config ui.allowemptycommit=1 |
52 $ hg split | 52 $ hg split |
53 abort: cannot split an empty revision | 53 abort: cannot split an empty revision |
54 [255] | 54 [10] |
55 | 55 |
56 $ rm -rf .hg | 56 $ rm -rf .hg |
57 $ hg init | 57 $ hg init |
58 | 58 |
59 Cannot split working directory | 59 Cannot split working directory |
60 | 60 |
61 $ hg split -r 'wdir()' | 61 $ hg split -r 'wdir()' |
62 abort: cannot split working directory | 62 abort: cannot split working directory |
63 [255] | 63 [10] |
64 | 64 |
65 Generate some content. The sed filter drop CR on Windows, which is dropped in | 65 Generate some content. The sed filter drop CR on Windows, which is dropped in |
66 the a > b line. | 66 the a > b line. |
67 | 67 |
68 $ $TESTDIR/seq.py 1 5 | sed 's/\r$//' >> a | 68 $ $TESTDIR/seq.py 1 5 | sed 's/\r$//' >> a |
101 | 101 |
102 $ hg bookmark r3 | 102 $ hg bookmark r3 |
103 | 103 |
104 $ hg split 'all()' | 104 $ hg split 'all()' |
105 abort: cannot split multiple revisions | 105 abort: cannot split multiple revisions |
106 [255] | 106 [10] |
107 | 107 |
108 This function splits a bit strangely primarily to avoid changing the behavior of | 108 This function splits a bit strangely primarily to avoid changing the behavior of |
109 the test after a bug was fixed with how split/commit --interactive handled | 109 the test after a bug was fixed with how split/commit --interactive handled |
110 `commands.commit.interactive.unified=0`: when there were no context lines, | 110 `commands.commit.interactive.unified=0`: when there were no context lines, |
111 it kept only the last diff hunk. When running split, this meant that runsplit | 111 it kept only the last diff hunk. When running split, this meant that runsplit |