diff hgext/record.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 054da1e0afbe
children e89534504fb9
line wrap: on
line diff
--- a/hgext/record.py	Tue May 24 19:16:51 2011 +0300
+++ b/hgext/record.py	Tue May 24 19:17:02 2011 +0300
@@ -389,7 +389,10 @@
     except KeyError:
         raise util.Abort(_("'mq' extension not loaded"))
 
+    repo.mq.checkpatchname(patch)
+
     def committomq(ui, repo, *pats, **opts):
+        opts['checkname'] = False
         mq.new(ui, repo, patch, *pats, **opts)
 
     dorecord(ui, repo, committomq, 'qnew', *pats, **opts)