hgext/mq.py
changeset 25454 b5a8bc09b0db
parent 25453 d3a00fc3680f
child 25469 cc3d94e5994e
--- a/hgext/mq.py	Fri Jun 05 14:31:52 2015 -0400
+++ b/hgext/mq.py	Fri Jun 05 14:34:58 2015 -0400
@@ -1102,7 +1102,7 @@
             if name.startswith(prefix):
                 raise util.Abort(_('patch name cannot begin with "%s"')
                                  % prefix)
-        for c in ('#', ':'):
+        for c in ('#', ':', '\r', '\n'):
             if c in name:
                 raise util.Abort(_('%r cannot be used in the name of a patch')
                                  % c)