From patchwork Wed Oct 29 03:19:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [evolve-ext] test-amend: add a test for amend with no configured username (issue4211) From: Matt Harbison X-Patchwork-Id: 6492 Message-Id: <5870fcdfe62a7a11ab52.1414552794@Envy> To: mercurial-devel@selenic.com Date: Tue, 28 Oct 2014 23:19:54 -0400 # HG changeset patch # User Matt Harbison # Date 1414552736 14400 # Tue Oct 28 23:18:56 2014 -0400 # Node ID 5870fcdfe62a7a11ab52d21687d37919128db958 # Parent b7d85cd8ec7bd5a4ba5a61d156745269a999450b test-amend: add a test for amend with no configured username (issue4211) diff --git a/tests/test-amend.t b/tests/test-amend.t --- a/tests/test-amend.t +++ b/tests/test-amend.t @@ -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)