[PATCH evolve-ext] test-amend: add a test for amend with no configured username (issue4211)

Matt Harbison matt_harbison at yahoo.com
Tue Oct 28 22:19:54 CDT 2014


# HG changeset patch
# User Matt Harbison <matt_harbison at 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)

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)


More information about the Mercurial-devel mailing list