# HG changeset patch # User Florent Guillaume # Date 2008-03-23 00:23:03 # Node ID 25e74cd3f023ec5bd3f5807ece61b095a97384ee # Parent 7cb9af02e2506ef83ea5def9c61ef63ca9cff8f5 test-notify: make it pass on Mac OS X 10.5 diff --git a/tests/test-notify b/tests/test-notify --- a/tests/test-notify +++ b/tests/test-notify @@ -31,8 +31,18 @@ echo a >> a/a echo % commit hg --traceback --cwd a commit -Amb -d '1 0' +# on Mac OS X 10.5 the tmp path is very long so would get stripped in the subject line +cat <> $HGRCPATH +[notify] +maxsubject = 200 +EOF + +# the python call below wraps continuation lines, which appear on Mac OS X 10.5 because +# of the very long subject line echo '% pull (minimal config)' -hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ +hg --traceback --cwd b pull ../a 2>&1 | + python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),' | + sed -e 's/\(Message-Id:\).*/\1/' \ -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \ -e 's/^details: .*test-notify/details: test-notify/' \ -e 's/^Date:.*/Date:/' diff --git a/tests/test-notify.out b/tests/test-notify.out --- a/tests/test-notify.out +++ b/tests/test-notify.out @@ -23,8 +23,7 @@ To: baz, foo@bar changeset 0647d048b600 in test-notify/b details: test-notify/b?cmd=changeset;node=0647d048b600 -description: - b +description: b diffs (6 lines):