##// END OF EJS Templates
Use dummy diffstat in tests and remove older diffstat workaround....
Thomas Arendsen Hein -
r7172:fb1d7a42 default
parent child Browse files
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
@@ -83,5 +83,4 echo % pull
83 83 hg --cwd b rollback
84 84 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
85 85 -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \
86 -e 's/^Date:.*/Date:/' \
87 -e 's/^1 files changed/1 file changed/'
86 -e 's/^Date:.*/Date:/'
@@ -150,8 +150,7 description:
150 150 b
151 151 diffstat:
152 152
153 1 file changed, 1 insertion(+)
154 a | 1 +
153 files patched: 1
155 154
156 155 diffs (6 lines):
157 156
General Comments 0
You need to be logged in to leave comments. Login now