[PATCH 1 of 2] run-tests: remove code that creates a dummy 'diffstat'

Sean Farley sean.michael.farley at gmail.com
Fri Nov 15 22:09:16 CST 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1384574168 18000
#      Fri Nov 15 22:56:08 2013 -0500
# Node ID 32b6b92916e9c4f0c5a0b9e40efcbecdb0b7afac
# Parent  c38c3fdc8b9317ba09e03ab09364c3800da7c50c
run-tests: remove code that creates a dummy 'diffstat'

This was introduced in fb1d7a42663c for an old test that is no longer the same.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -496,22 +496,10 @@
         sys.exit(1)
     os.chdir(TESTDIR)
 
     usecorrectpython()
 
-    vlog("# Installing dummy diffstat")
-    f = open(os.path.join(BINDIR, 'diffstat'), 'w')
-    f.write('#!' + sys.executable + '\n'
-            'import sys\n'
-            'files = 0\n'
-            'for line in sys.stdin:\n'
-            '    if line.startswith("diff "):\n'
-            '        files += 1\n'
-            'sys.stdout.write("files patched: %d\\n" % files)\n')
-    f.close()
-    os.chmod(os.path.join(BINDIR, 'diffstat'), 0700)
-
     if options.py3k_warnings and not options.anycoverage:
         vlog("# Updating hg command to enable Py3k Warnings switch")
         f = open(os.path.join(BINDIR, 'hg'), 'r')
         lines = [line.rstrip() for line in f]
         lines[0] += ' -3'


More information about the Mercurial-devel mailing list