Mercurial > hg
changeset 3982:714fbfe5c9e5
mq: remove unecessary code, duplicate with util.opener
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 26 Dec 2006 03:29:45 +0100 |
parents | 180670f14045 |
children | e492ab235b4d |
files | hgext/mq.py |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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()