hgext/mq.py
branchstable
changeset 11513 0c944b7af564
parent 11462 1b82a26635d7
child 11530 958022f0f1d5
--- a/hgext/mq.py	Fri Jul 02 14:14:30 2010 -1000
+++ b/hgext/mq.py	Sun Mar 28 15:23:11 2010 +0900
@@ -2311,6 +2311,9 @@
         q.applied[info[0]] = statusentry(info[1], name)
     q.applied_dirty = 1
 
+    destdir = os.path.dirname(absdest)
+    if not os.path.isdir(destdir):
+        os.makedirs(destdir)
     util.rename(q.join(patch), absdest)
     r = q.qrepo()
     if r: