mq: remove unecessary code, duplicate with util.opener
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 26 Dec 2006 03:29:45 +0100
changeset 3982 714fbfe5c9e5
parent 3981 180670f14045
child 3989 e492ab235b4d
mq: remove unecessary code, duplicate with util.opener
hgext/mq.py
--- a/hgext/mq.py	Tue Dec 26 03:42:17 2006 +0100
+++ b/hgext/mq.py	Tue Dec 26 03:29:45 2006 +0100
@@ -830,14 +830,7 @@
             wlock=None):
         def getfile(f, rev):
             t = repo.file(f).read(rev)
-            try:
-                repo.wfile(f, "w").write(t)
-            except IOError:
-                try:
-                    os.makedirs(os.path.dirname(repo.wjoin(f)))
-                except OSError, err:
-                    if err.errno != errno.EEXIST: raise
-                repo.wfile(f, "w").write(t)
+            repo.wfile(f, "w").write(t)
 
         if not wlock:
             wlock = repo.wlock()