comparison tests/test-amend.t @ 6179:4bcd641b7aec mercurial-5.8

test-compat: merge mercurial-5.9 into mercurial-5.8
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 22 Feb 2022 07:51:36 +0300
parents 1a13ac9ef30a
children df773a9bed0c 1328195f76a9
comparison
equal deleted inserted replaced
6178:c0360b75ff60 6179:4bcd641b7aec
197 working directory parent is obsolete! (9092f1db7931) 197 working directory parent is obsolete! (9092f1db7931)
198 198
199 when rewritting an already rewritten changeset (i.e cset being rewritten will 199 when rewritting an already rewritten changeset (i.e cset being rewritten will
200 be the base of divergence) 200 be the base of divergence)
201 $ hg amend -m "i am gonna create divergence" 201 $ hg amend -m "i am gonna create divergence"
202 abort: cannot amend 9092f1db7931, as that creates content-divergence with aafaf407b00d 202 abort: amend of 9092f1db7931 creates content-divergence with aafaf407b00d
203 (add --verbose for details or see 'hg help evolution.instability') 203 (add --verbose for details or see 'hg help evolution.instability')
204 [10] 204 [255]
205 $ hg amend -m "i am gonna create divergence" --verbose 205 $ hg amend -m "i am gonna create divergence" --verbose
206 abort: cannot amend 9092f1db7931, as that creates content-divergence with aafaf407b00d 206 abort: amend of 9092f1db7931 creates content-divergence with aafaf407b00d
207 changeset 9092f1db7931 already has a successor in changeset aafaf407b00d 207 changeset 9092f1db7931 already have a successors as changeset aafaf407b00d
208 rewriting changeset 9092f1db7931 would create "content-divergence" 208 rewriting changeset 9092f1db7931 would create "content-divergence"
209 set experimental.evolution.allowdivergence=True to skip this check 209 set experimental.evolution.allowdivergence=True to overwrite this check
210 (see 'hg help evolution.instability' for details on content-divergence) 210 (see 'hg help evolution.instability' for details on content-divergence)
211 [10] 211 [255]
212 212
213 when rewritting a cset which has a predecessor with non-obsolete successor 213 when rewritting a cset which has a predecessor with non-obsolete successor
214 214
215 to prepare the repo 215 to prepare the repo
216 1) create content-divergence 216 1) create content-divergence
227 1 new obsolescence markers 227 1 new obsolescence markers
228 obsoleted 1 changesets 228 obsoleted 1 changesets
229 229
230 $ hg evolve -l 230 $ hg evolve -l
231 $ hg amend -m "i am gonna create divergence" 231 $ hg amend -m "i am gonna create divergence"
232 abort: cannot amend f8c05838af90, as that creates content-divergence with aafaf407b00d, from 9092f1db7931 232 abort: amend of f8c05838af90 creates content-divergence with aafaf407b00d, from 9092f1db7931
233 (add --verbose for details or see 'hg help evolution.instability') 233 (add --verbose for details or see 'hg help evolution.instability')
234 [10] 234 [255]
235 $ hg amend -m "i am gonna create divergence" --verbose 235 $ hg amend -m "i am gonna create divergence" --verbose
236 abort: cannot amend f8c05838af90, as that creates content-divergence with aafaf407b00d, from 9092f1db7931 236 abort: amend of f8c05838af90 creates content-divergence with aafaf407b00d, from 9092f1db7931
237 changeset f8c05838af90 is a successor of changeset 9092f1db7931 237 changeset f8c05838af90 is an evolution of changeset 9092f1db7931
238 changeset 9092f1db7931 already has a successor in changeset aafaf407b00d 238 changeset 9092f1db7931 already have a successors as changeset aafaf407b00d
239 rewriting changeset f8c05838af90 would create "content-divergence" 239 rewriting changeset f8c05838af90 would create "content-divergence"
240 set experimental.evolution.allowdivergence=True to skip this check 240 set experimental.evolution.allowdivergence=True to overwrite this check
241 (see 'hg help evolution.instability' for details on content-divergence) 241 (see 'hg help evolution.instability' for details on content-divergence)
242 [10] 242 [255]