# HG changeset patch # User Lee Cantey # Date 2010-07-25 15:22:03 # Node ID 71dab6955be0bbe6f0e391116039f4c3bc20ee14 # Parent 3f838abf2b9616be6f7813fc8a71dc2cfcb36e8c Remove variable output affected by length of TMPDIR. If the temporary directory is longer than /tmp then it's possible that the Subject line will get wrapped by the headencode function. diff --git a/tests/test-notify-changegroup b/tests/test-notify-changegroup --- a/tests/test-notify-changegroup +++ b/tests/test-notify-changegroup @@ -10,7 +10,7 @@ changegroup.notify = python:hgext.notify [notify] sources = push diffstat = False -maxsubject = 200 +maxsubject = 10 [usersubs] foo@bar = * @@ -37,7 +37,7 @@ hg --traceback --cwd b push ../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/^Subject: .*test-notify/Subject: test-notify/' \ + -e 's/^Subject: .*/Subject: test-notify-changegroup/' \ -e 's/^details: .*test-notify/details: test-notify/' \ -e 's/^Date:.*/Date:/' diff --git a/tests/test-notify-changegroup.out b/tests/test-notify-changegroup.out --- a/tests/test-notify-changegroup.out +++ b/tests/test-notify-changegroup.out @@ -15,7 +15,7 @@ Content-Type: text/plain; charset="us-as MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Date: -Subject: test-notify-changegroup/a: 2 new changesets +Subject: test-notify-changegroup From: test X-Hg-Notification: changeset cb9a9f314b8b Message-Id: