comparison tests/test-histedit-obsolete.t @ 43933:bde97bee321f

histedit: use rewriteutil.precheck() instead of reimplementing it We have had this nice utility since 490df753894d (rewriteutil: add a precheck function to check if revs can be rewritten, 2017-11-24). We got two callers soon thereafter, in 98f97eb20597 (rewriteutil: use precheck() in uncommit and amend commands, 2017-11-28). It's about time we use it in other places. rewriteutil.precheck() looks unfortunate for i18n (it seems to rely on an English verb for the action making sense in other languages), but hopefully not bad enough that we should avoid using it. Differential Revision: https://phab.mercurial-scm.org/D7684
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 17 Dec 2019 10:53:51 -0800
parents db5560c07a28
children ed84a4d48910
comparison
equal deleted inserted replaced
43932:9fb9f3a5cad7 43933:bde97bee321f
305 o 12:40db8afa467b (public) c 305 o 12:40db8afa467b (public) c
306 | 306 |
307 o 0:cb9a9f314b8b (public) a 307 o 0:cb9a9f314b8b (public) a
308 308
309 $ hg histedit -r '.~2' 309 $ hg histedit -r '.~2'
310 abort: cannot edit public changeset: cb9a9f314b8b 310 abort: cannot edit public changesets
311 (see 'hg help phases' for details) 311 (see 'hg help phases' for details)
312 [255] 312 [255]
313 313
314 314
315 Prepare further testing 315 Prepare further testing