Mercurial > public > mercurial-scm > hg
diff hgext/extdiff.py @ 4005:656e06eebda7
replace filehandle version of wwrite with wwritedata
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 29 Dec 2006 20:04:31 -0600 |
parents | 95e6488bc809 |
children | 49237d6ae97d |
line wrap: on
line diff
--- a/hgext/extdiff.py Fri Dec 29 20:04:31 2006 -0600 +++ b/hgext/extdiff.py Fri Dec 29 20:04:31 2006 -0600 @@ -73,7 +73,8 @@ destdir = os.path.dirname(dest) if not os.path.isdir(destdir): os.makedirs(destdir) - repo.wwrite(wfn, repo.file(fn).read(mf[fn]), open(dest, 'w')) + data = repo.wwritedata(wfn, repo.file(wfn).read(mf[wfn])) + open(dest, 'w').write(data) return dirname def snapshot_wdir(files):