Show More
@@ -205,6 +205,18 def install_hg(): | |||
|
205 | 205 | global hgpkg |
|
206 | 206 | hgpkg = _hgpath() |
|
207 | 207 | |
|
208 | vlog("# Installing dummy diffstat") | |
|
209 | f = open(os.path.join(BINDIR, 'diffstat'), 'w') | |
|
210 | f.write('#!' + sys.executable + '\n' | |
|
211 | 'import sys\n' | |
|
212 | 'files = 0\n' | |
|
213 | 'for line in sys.stdin:\n' | |
|
214 | ' if line.startswith("diff "):\n' | |
|
215 | ' files += 1\n' | |
|
216 | 'sys.stdout.write("files patched: %d\\n" % files)\n') | |
|
217 | f.close() | |
|
218 | os.chmod(os.path.join(BINDIR, 'diffstat'), 0700) | |
|
219 | ||
|
208 | 220 | if coverage: |
|
209 | 221 | vlog("# Installing coverage wrapper") |
|
210 | 222 | os.environ['COVERAGE_FILE'] = COVERAGE_FILE |
General Comments 0
You need to be logged in to leave comments.
Login now