Mercurial > hg
comparison tests/test-branches.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 | c4b792fa109e |
comparison
equal
deleted
inserted
replaced
45844:3175b0e0058b | 45845:f96fa4de5055 |
---|---|
49 | 49 |
50 reserved names | 50 reserved names |
51 | 51 |
52 $ hg branch tip | 52 $ hg branch tip |
53 abort: the name 'tip' is reserved | 53 abort: the name 'tip' is reserved |
54 [255] | 54 [10] |
55 $ hg branch null | 55 $ hg branch null |
56 abort: the name 'null' is reserved | 56 abort: the name 'null' is reserved |
57 [255] | 57 [10] |
58 $ hg branch . | 58 $ hg branch . |
59 abort: the name '.' is reserved | 59 abort: the name '.' is reserved |
60 [255] | 60 [10] |
61 | 61 |
62 invalid characters | 62 invalid characters |
63 | 63 |
64 $ hg branch 'foo:bar' | 64 $ hg branch 'foo:bar' |
65 abort: ':' cannot be used in a name | 65 abort: ':' cannot be used in a name |
66 [255] | 66 [10] |
67 | 67 |
68 $ hg branch 'foo | 68 $ hg branch 'foo |
69 > bar' | 69 > bar' |
70 abort: '\n' cannot be used in a name | 70 abort: '\n' cannot be used in a name |
71 [255] | 71 [10] |
72 | 72 |
73 trailing or leading spaces should be stripped before testing duplicates | 73 trailing or leading spaces should be stripped before testing duplicates |
74 | 74 |
75 $ hg branch 'b ' | 75 $ hg branch 'b ' |
76 abort: a branch of the same name already exists | 76 abort: a branch of the same name already exists |