tests/test-amend.t
branchstable
changeset 1146 3de3d85069fd
parent 1142 9d85fd6e1474
child 1185 cc3e68120185
--- a/tests/test-amend.t	Tue Sep 30 10:27:54 2014 -0500
+++ b/tests/test-amend.t	Sun Nov 02 15:06:00 2014 +0000
@@ -97,3 +97,22 @@
   $ HGUSER=newbie hg amend -U
   $ hg parents --template '{rev}  {author}\n'
   7  newbie
+
+Check that --logfile works
+  $ echo "logfile message" > logfile.txt
+  $ 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)