equal
deleted
inserted
replaced
496 sys.exit(1) |
496 sys.exit(1) |
497 os.chdir(TESTDIR) |
497 os.chdir(TESTDIR) |
498 |
498 |
499 usecorrectpython() |
499 usecorrectpython() |
500 |
500 |
501 vlog("# Installing dummy diffstat") |
|
502 f = open(os.path.join(BINDIR, 'diffstat'), 'w') |
|
503 f.write('#!' + sys.executable + '\n' |
|
504 'import sys\n' |
|
505 'files = 0\n' |
|
506 'for line in sys.stdin:\n' |
|
507 ' if line.startswith("diff "):\n' |
|
508 ' files += 1\n' |
|
509 'sys.stdout.write("files patched: %d\\n" % files)\n') |
|
510 f.close() |
|
511 os.chmod(os.path.join(BINDIR, 'diffstat'), 0700) |
|
512 |
|
513 if options.py3k_warnings and not options.anycoverage: |
501 if options.py3k_warnings and not options.anycoverage: |
514 vlog("# Updating hg command to enable Py3k Warnings switch") |
502 vlog("# Updating hg command to enable Py3k Warnings switch") |
515 f = open(os.path.join(BINDIR, 'hg'), 'r') |
503 f = open(os.path.join(BINDIR, 'hg'), 'r') |
516 lines = [line.rstrip() for line in f] |
504 lines = [line.rstrip() for line in f] |
517 lines[0] += ' -3' |
505 lines[0] += ' -3' |