equal
deleted
inserted
replaced
202 os.environ["PYTHONPATH"] = pythonpath |
202 os.environ["PYTHONPATH"] = pythonpath |
203 |
203 |
204 use_correct_python() |
204 use_correct_python() |
205 global hgpkg |
205 global hgpkg |
206 hgpkg = _hgpath() |
206 hgpkg = _hgpath() |
|
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) |
207 |
219 |
208 if coverage: |
220 if coverage: |
209 vlog("# Installing coverage wrapper") |
221 vlog("# Installing coverage wrapper") |
210 os.environ['COVERAGE_FILE'] = COVERAGE_FILE |
222 os.environ['COVERAGE_FILE'] = COVERAGE_FILE |
211 if os.path.exists(COVERAGE_FILE): |
223 if os.path.exists(COVERAGE_FILE): |