diff tests/test-qrecord.t @ 31556:448acdee9161

mq: reject new patch name containing leading/trailing whitespace We could create a patch of such name, but it wouldn't be processed properly by mq as parseseries() strips leading/trailing whitespace. The test of default message (added by b9a16ed5acec) is no longer be useful so removed. This issue was reported as: https://bitbucket.org/tortoisehg/thg/issues/4693/
author Yuya Nishihara <yuya@tcha.org>
date Mon, 20 Mar 2017 11:38:37 +0900
parents 7074589cf22a
children da07367d683b
line wrap: on
line diff
--- a/tests/test-qrecord.t	Fri Mar 10 16:18:43 2017 -0800
+++ b/tests/test-qrecord.t	Mon Mar 20 11:38:37 2017 +0900
@@ -239,6 +239,12 @@
   $ hg qrecord .hg
   abort: patch name cannot begin with ".hg"
   [255]
+  $ hg qrecord ' foo'
+  abort: patch name cannot begin or end with whitespace
+  [255]
+  $ hg qrecord 'foo '
+  abort: patch name cannot begin or end with whitespace
+  [255]
 
 qrecord a.patch