##// 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 b' def install_hg():'
205 global hgpkg
205 global hgpkg
206 hgpkg = _hgpath()
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 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
@@ -83,5 +83,4 b' echo % pull'
83 hg --cwd b rollback
83 hg --cwd b rollback
84 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
84 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \
85 -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \
85 -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \
86 -e 's/^Date:.*/Date:/' \
86 -e 's/^Date:.*/Date:/'
87 -e 's/^1 files changed/1 file changed/'
@@ -150,8 +150,7 b' description:'
150 b
150 b
151 diffstat:
151 diffstat:
152
152
153 1 file changed, 1 insertion(+)
153 files patched: 1
154 a | 1 +
155
154
156 diffs (6 lines):
155 diffs (6 lines):
157
156
General Comments 0
You need to be logged in to leave comments. Login now