Mercurial > public > mercurial-scm > hg
diff mercurial/patch.py @ 5878:d39af2eabb8c
transform a bunch of print statements to appropriate ui calls
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 18 Jan 2008 10:48:25 -0600 |
parents | deb0d3518674 |
children | 2da5b19a6460 |
line wrap: on
line diff
--- a/mercurial/patch.py Fri Jan 18 10:07:36 2008 -0600 +++ b/mercurial/patch.py Fri Jan 18 10:48:25 2008 -0600 @@ -1372,7 +1372,8 @@ try: p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name) try: - for line in patchlines: print >> p.tochild, line + for line in patchlines: + p.tochild.write(line + "\n") p.tochild.close() if p.wait(): return fp = os.fdopen(fd, 'r')