Submitter | Matt Harbison |
---|---|
Date | Oct. 29, 2014, 3:19 a.m. |
Message ID | <5870fcdfe62a7a11ab52.1414552794@Envy> |
Download | mbox | patch |
Permalink | /patch/6492/ |
State | Not Applicable |
Headers | show |
Comments
On 10/29/2014 03:19 AM, Matt Harbison wrote: > # HG changeset patch > # User Matt Harbison <matt_harbison@yahoo.com> > # 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) pushed the clowncopter thanks.
Patch
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)