Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 4325:aa26759c6fb3
Merge with crew-stable.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 07 Apr 2007 04:45:27 -0300 |
parents | 47ba52121433 6e4334be0aaa |
children | 439b1c35348a |
comparison
equal
deleted
inserted
replaced
4313:61ab822a9e88 | 4325:aa26759c6fb3 |
---|---|
633 | 633 |
634 for seqno, rev in enumerate(revs): | 634 for seqno, rev in enumerate(revs): |
635 single(rev, seqno+1, fp) | 635 single(rev, seqno+1, fp) |
636 | 636 |
637 def diffstat(patchlines): | 637 def diffstat(patchlines): |
638 if not util.find_in_path('diffstat', os.environ.get('PATH', '')): | |
639 return | |
638 fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt") | 640 fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt") |
639 try: | 641 try: |
640 p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name) | 642 p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name) |
641 try: | 643 try: |
642 for line in patchlines: print >> p.tochild, line | 644 for line in patchlines: print >> p.tochild, line |