equal
deleted
inserted
replaced
60 # present on windows |
60 # present on windows |
61 import readline |
61 import readline |
62 except ImportError: pass |
62 except ImportError: pass |
63 |
63 |
64 def diffstat(patch): |
64 def diffstat(patch): |
65 fd, name = tempfile.mkstemp() |
65 fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt") |
66 try: |
66 try: |
67 p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name) |
67 p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name) |
68 try: |
68 try: |
69 for line in patch: print >> p.tochild, line |
69 for line in patch: print >> p.tochild, line |
70 p.tochild.close() |
70 p.tochild.close() |