--- a/tests/test-mq-qimport.t Fri Dec 18 20:54:41 2015 -0800
+++ b/tests/test-mq-qimport.t Wed Dec 23 22:28:52 2015 +0900
@@ -290,3 +290,26 @@
$ cd ..
$ killdaemons.py
+
+check patch name generation for non-alpha-numeric summary line
+
+ $ cd repo
+
+ $ hg qpop -a -q
+ patch queue now empty
+ $ hg qseries -v
+ 0 U imported_patch_b_diff
+ 1 U 0
+ 2 U this-name-is-better
+ 3 U url.diff
+
+ $ echo bb >> b
+ $ hg commit -m '==++--=='
+
+ $ hg qimport -r tip
+ $ hg qseries -v
+ 0 A 1.diff
+ 1 U imported_patch_b_diff
+ 2 U 0
+ 3 U this-name-is-better
+ 4 U url.diff