# HG changeset patch # User Matt Harbison # Date 1414552736 14400 # Node ID 9d85fd6e14744a5800584658a5a23eb87d62aee3 # Parent ca17770d2ee9befc0ed598387ca2ada64c5a2c4c test-amend: add a test for amend with no configured username (issue4211) diff -r ca17770d2ee9 -r 9d85fd6e1474 tests/test-amend.t --- 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)