hgext/mq.py
branchstable
changeset 12875 b59b5193d4d0
parent 12850 62b334b0dfdf
child 12878 1634287b6ab1
--- a/hgext/mq.py	Thu Oct 28 21:25:53 2010 +0200
+++ b/hgext/mq.py	Thu Oct 28 22:04:33 2010 +0200
@@ -2400,7 +2400,7 @@
         os.makedirs(destdir)
     util.rename(q.join(patch), absdest)
     r = q.qrepo()
-    if r:
+    if r and patch in r.dirstate:
         wctx = r[None]
         wlock = r.wlock()
         try: