##// END OF EJS Templates
Try to find diffstat in PATH before calling it...
Alexis S. L. Carvalho -
r4316:6e4334be default
parent child Browse files
Show More
@@ -663,6 +663,8 b" def export(repo, revs, template='hg-%h.p"
663 single(repo.lookup(rev), seqno+1, fp)
663 single(repo.lookup(rev), seqno+1, fp)
664
664
665 def diffstat(patchlines):
665 def diffstat(patchlines):
666 if not util.find_in_path('diffstat', os.environ.get('PATH', '')):
667 return
666 fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt")
668 fd, name = tempfile.mkstemp(prefix="hg-patchbomb-", suffix=".txt")
667 try:
669 try:
668 p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name)
670 p = popen2.Popen3('diffstat -p1 -w79 2>/dev/null > ' + name)
General Comments 0
You need to be logged in to leave comments. Login now