comparison tests/test-notify @ 6359:25e74cd3f023

test-notify: make it pass on Mac OS X 10.5
author Florent Guillaume <fg@nuxeo.com>
date Sun, 23 Mar 2008 01:23:03 +0100
parents 5371a213b0f4
children 31837416ef4d
comparison
equal deleted inserted replaced
6358:7cb9af02e250 6359:25e74cd3f023
29 29
30 echo a >> a/a 30 echo a >> a/a
31 echo % commit 31 echo % commit
32 hg --traceback --cwd a commit -Amb -d '1 0' 32 hg --traceback --cwd a commit -Amb -d '1 0'
33 33
34 # on Mac OS X 10.5 the tmp path is very long so would get stripped in the subject line
35 cat <<EOF >> $HGRCPATH
36 [notify]
37 maxsubject = 200
38 EOF
39
40 # the python call below wraps continuation lines, which appear on Mac OS X 10.5 because
41 # of the very long subject line
34 echo '% pull (minimal config)' 42 echo '% pull (minimal config)'
35 hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ 43 hg --traceback --cwd b pull ../a 2>&1 |
44 python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),' |
45 sed -e 's/\(Message-Id:\).*/\1/' \
36 -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \ 46 -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \
37 -e 's/^details: .*test-notify/details: test-notify/' \ 47 -e 's/^details: .*test-notify/details: test-notify/' \
38 -e 's/^Date:.*/Date:/' 48 -e 's/^Date:.*/Date:/'
39 49
40 cat <<EOF >> $HGRCPATH 50 cat <<EOF >> $HGRCPATH