diff hgext/mq.py @ 14424:4eb88d296f63

record: check patch name is valid before prompting in qrecord
author Idan Kamara <idankk86@gmail.com>
date Tue, 24 May 2011 19:17:02 +0300
parents 7230aef66b7c
children cc8c09855d19
line wrap: on
line diff
--- a/hgext/mq.py	Tue May 24 19:16:51 2011 +0300
+++ b/hgext/mq.py	Tue May 24 19:17:02 2011 +0300
@@ -892,7 +892,8 @@
         if date:
             date = util.parsedate(date)
         diffopts = self.diffopts({'git': opts.get('git')})
-        self.checkpatchname(patchfn)
+        if opts.get('checkname', True):
+            self.checkpatchname(patchfn)
         inclsubs = self.check_substate(repo)
         if inclsubs:
             inclsubs.append('.hgsubstate')