changeset 4316 | 6e4334be0aaa |
parent 4229 | 24c22a3f2ef8 |
child 4325 | aa26759c6fb3 |
--- a/mercurial/patch.py Sat Apr 07 04:27:55 2007 -0300 +++ b/mercurial/patch.py Sat Apr 07 04:27:55 2007 -0300 @@ -663,6 +663,8 @@ single(repo.lookup(rev), seqno+1, fp) def diffstat(patchlines): + if not util.find_in_path('diffstat', os.environ.get('PATH', '')): + return fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt") try: p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name)