tests/test-amend.t
changeset 1142 9d85fd6e1474
parent 1140 b7d85cd8ec7b
child 1185 cc3e68120185
--- a/tests/test-amend.t	Sat Nov 01 13:48:34 2014 +0000
+++ b/tests/test-amend.t	Tue Oct 28 23:18:56 2014 -0400
@@ -103,3 +103,16 @@
   $ hg amend -l logfile.txt
   $ hg log -r . -T "{desc}\n"
   logfile message
+
+# Make sure we don't get reparented to -1 with no username (issue4211)
+  $ HGUSER=
+  $ hg amend -e --config ui.username= -m "empty user"
+  abort: no username supplied
+  (use "hg config --edit" to set your username)
+  [255]
+  $ hg sum
+  parent: 8:* tip (glob)
+   logfile message
+  branch: foo
+  commit: 1 unknown (clean)
+  update: (current)