diff -r 61ab822a9e88 -r aa26759c6fb3 mercurial/patch.py --- a/mercurial/patch.py Thu Apr 05 15:20:42 2007 -0700 +++ b/mercurial/patch.py Sat Apr 07 04:45:27 2007 -0300 @@ -635,6 +635,8 @@ single(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)