Mercurial > evolve
comparison tests/test-namespaces-precheck.t @ 6585:a62308fb15c1 mercurial-5.6
test-compat: merge mercurial-5.7 into mercurial-5.6
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 14 Oct 2023 13:34:03 -0300 |
parents | e846964c93c2 |
children | 81853c544896 |
comparison
equal
deleted
inserted
replaced
6584:b17470ba976f | 6585:a62308fb15c1 |
---|---|
21 Make sure general checks in precheck() happen before topic namespaces checks | 21 Make sure general checks in precheck() happen before topic namespaces checks |
22 | 22 |
23 $ hg prune null | 23 $ hg prune null |
24 abort: cannot prune null changeset | 24 abort: cannot prune null changeset |
25 (no changeset checked out) | 25 (no changeset checked out) |
26 [10] | 26 [255] |
27 | 27 |
28 $ echo apple > a | 28 $ echo apple > a |
29 $ hg ci -qAm apple | 29 $ hg ci -qAm apple |
30 | 30 |
31 $ hg debug-topic-namespace foo | 31 $ hg debug-topic-namespace foo |
39 | 39 |
40 $ echo broccoli > b | 40 $ echo broccoli > b |
41 $ hg amend -m 'broccoli' | 41 $ hg amend -m 'broccoli' |
42 abort: refusing to amend changesets with these topic namespaces: foo | 42 abort: refusing to amend changesets with these topic namespaces: foo |
43 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 43 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
44 [10] | 44 [255] |
45 $ hg amend -m 'broccoli' --config experimental.tns-allow-rewrite=foo,something-unrelated | 45 $ hg amend -m 'broccoli' --config experimental.tns-allow-rewrite=foo,something-unrelated |
46 | 46 |
47 $ echo coconut > b | 47 $ echo coconut > b |
48 $ hg ci -qAm 'coconut' | 48 $ hg ci -qAm 'coconut' |
49 | 49 |
50 Testing history-rewriting commands from evolve extension | 50 Testing history-rewriting commands from evolve extension |
51 | 51 |
52 $ hg amend -m 'coconut' | 52 $ hg amend -m 'coconut' |
53 abort: refusing to amend changesets with these topic namespaces: foo | 53 abort: refusing to amend changesets with these topic namespaces: foo |
54 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 54 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
55 [10] | 55 [255] |
56 $ hg amend --patch -m 'coconut' | 56 $ hg amend --patch -m 'coconut' |
57 abort: refusing to amend changesets with these topic namespaces: foo | 57 abort: refusing to amend changesets with these topic namespaces: foo |
58 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 58 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
59 [10] | 59 [255] |
60 $ hg uncommit | 60 $ hg uncommit |
61 abort: refusing to uncommit changesets with these topic namespaces: foo | 61 abort: refusing to uncommit changesets with these topic namespaces: foo |
62 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 62 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
63 [10] | 63 [255] |
64 $ hg prune -r . | 64 $ hg prune -r . |
65 abort: refusing to prune changesets with these topic namespaces: foo | 65 abort: refusing to prune changesets with these topic namespaces: foo |
66 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 66 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
67 [10] | 67 [255] |
68 $ hg split -r . | 68 $ hg split -r . |
69 abort: refusing to split changesets with these topic namespaces: foo | 69 abort: refusing to split changesets with these topic namespaces: foo |
70 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 70 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
71 [10] | 71 [255] |
72 $ hg touch -r . | 72 $ hg touch -r . |
73 abort: refusing to touch changesets with these topic namespaces: foo | 73 abort: refusing to touch changesets with these topic namespaces: foo |
74 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 74 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
75 [10] | 75 [255] |
76 | 76 |
77 Testing core history-rewriting commands | 77 Testing core history-rewriting commands |
78 | 78 |
79 $ hg ci --amend | 79 $ hg ci --amend |
80 abort: refusing to amend changesets with these topic namespaces: foo | 80 abort: refusing to amend changesets with these topic namespaces: foo |
81 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 81 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
82 [10] | 82 [255] |
83 $ hg branch different-branch --rev . | 83 $ hg branch different-branch --rev . |
84 abort: refusing to change branch of changesets with these topic namespaces: foo | 84 abort: refusing to change branch of changesets with these topic namespaces: foo |
85 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 85 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
86 [10] | 86 [255] |
87 $ hg rebase -r . -d null | 87 $ hg rebase -r . -d null |
88 abort: refusing to rebase changesets with these topic namespaces: foo | 88 abort: refusing to rebase changesets with these topic namespaces: foo |
89 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 89 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
90 [10] | 90 [255] |
91 $ hg histedit | 91 $ hg histedit |
92 abort: refusing to edit changesets with these topic namespaces: foo | 92 abort: refusing to edit changesets with these topic namespaces: foo |
93 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) | 93 (modify experimental.tns-allow-rewrite to allow rewriting changesets from these topic namespaces) |
94 [10] | 94 [255] |
95 | 95 |
96 $ cd .. | 96 $ cd .. |