diff tests/test-histedit-edit.t @ 33762:c26a76e1af36

histedit: check first changeset for verb "roll" or "fold" (issue5498) If someone changes "pick" to "roll" or "fold" for the first changeset in a histedit rule Mercurial could remove a wrong changeset if the phase is non-public. roll or fold for the first changeset should be invalid.
author André Klitzing <aklitzing@gmail.com>
date Fri, 11 Aug 2017 15:20:41 +0200
parents 154298576d44
children 270e344a6c74
line wrap: on
line diff
--- a/tests/test-histedit-edit.t	Mon Jul 31 23:13:47 2017 +0900
+++ b/tests/test-histedit-edit.t	Fri Aug 11 15:20:41 2017 +0200
@@ -460,7 +460,7 @@
   > EOF
   $ HGEDITOR="sh ../edit.sh" hg histedit 2
   warning: histedit rules saved to: .hg/histedit-last-edit.txt
-  hg: parse error: cannot fold into public change 18aa70c8ad22
+  hg: parse error: first changeset cannot use verb "fold"
   [255]
   $ cat .hg/histedit-last-edit.txt
   fold 0012be4a27ea 2 extend a