Show More
@@ -111,7 +111,12 b" def precheck(repo, revs, action=b'rewrit" | |||||
111 | b' set experimental.evolution.allowdivergence=True to ' |
|
111 | b' set experimental.evolution.allowdivergence=True to ' | |
112 | b'skip this check' |
|
112 | b'skip this check' | |
113 | ) % (base_ctx, other_ctx, local_ctx) |
|
113 | ) % (base_ctx, other_ctx, local_ctx) | |
114 |
raise error.InputError( |
|
114 | raise error.InputError( | |
|
115 | msg, | |||
|
116 | hint=_( | |||
|
117 | b"see 'hg help evolution.instability' for details on content-divergence" | |||
|
118 | ), | |||
|
119 | ) | |||
115 | else: |
|
120 | else: | |
116 | raise error.InputError( |
|
121 | raise error.InputError( | |
117 | msg, |
|
122 | msg, |
@@ -241,6 +241,13 b' Cannot cause divergence by default' | |||||
241 | abort: cannot amend 112478962961, as that creates content-divergence with 16084da537dd |
|
241 | abort: cannot amend 112478962961, as that creates content-divergence with 16084da537dd | |
242 | (add --verbose for details or see 'hg help evolution.instability') |
|
242 | (add --verbose for details or see 'hg help evolution.instability') | |
243 | [10] |
|
243 | [10] | |
|
244 | $ hg amend -m divergent --verbose | |||
|
245 | abort: cannot amend 112478962961, as that creates content-divergence with 16084da537dd | |||
|
246 | changeset 112478962961 already has a successor in changeset 16084da537dd | |||
|
247 | rewriting changeset 112478962961 would create "content-divergence" | |||
|
248 | set experimental.evolution.allowdivergence=True to skip this check | |||
|
249 | (see 'hg help evolution.instability' for details on content-divergence) | |||
|
250 | [10] | |||
244 | $ hg amend -m divergent --config experimental.evolution.allowdivergence=true |
|
251 | $ hg amend -m divergent --config experimental.evolution.allowdivergence=true | |
245 | 2 new content-divergent changesets |
|
252 | 2 new content-divergent changesets | |
246 | #endif |
|
253 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now