# HG changeset patch # User Patrick Mezard # Date 1240766782 -7200 # Node ID bf795c34c63d85e59177305964c46ef04e36bfb3 # Parent 5b4ff21c74e4245186d3fbabfad7e7162f25bea7 test-extdiff: replace shell script with python for portability diff -r 5b4ff21c74e4 -r bf795c34c63d tests/test-extdiff --- a/tests/test-extdiff Sun Apr 26 18:36:36 2009 +0200 +++ b/tests/test-extdiff Sun Apr 26 19:26:22 2009 +0200 @@ -54,13 +54,14 @@ hg diff --git echo '% edit with extdiff -p' # prepare custom diff/edit tool -cat > differ.sh << EOT -#!/bin/sh -sleep 1 # avoid unchanged-timestamp problems -echo edited >> a/a -echo edited >> a/b +cat > differ.py << EOT +#!/usr/bin/env python +import time +time.sleep(1) # avoid unchanged-timestamp problems +file('a/a', 'ab').write('edited\n') +file('a/b', 'ab').write('edited\n') EOT -chmod +x differ.sh -hg extdiff -p `pwd`/differ.sh # will change to /tmp/extdiff.TMP and populate directories a.TMP and a and start tool +chmod +x differ.py +hg extdiff -p `pwd`/differ.py # will change to /tmp/extdiff.TMP and populate directories a.TMP and a and start tool echo '% diff in working directory, after' hg diff --git