##// END OF EJS Templates
Remove variable output affected by length of TMPDIR....
Lee Cantey -
r11842:71dab695 stable
parent child Browse files
Show More
@@ -1,43 +1,43 b''
1 1 #!/bin/sh
2 2
3 3 cat <<EOF >> $HGRCPATH
4 4 [extensions]
5 5 notify=
6 6
7 7 [hooks]
8 8 changegroup.notify = python:hgext.notify.hook
9 9
10 10 [notify]
11 11 sources = push
12 12 diffstat = False
13 maxsubject = 200
13 maxsubject = 10
14 14
15 15 [usersubs]
16 16 foo@bar = *
17 17
18 18 [reposubs]
19 19 * = baz
20 20 EOF
21 21
22 22 hg init a
23 23
24 24 echo % clone
25 25 hg --traceback clone a b
26 26
27 27 echo a > b/a
28 28 echo % commit
29 29 hg --traceback --cwd b commit -Ama
30 30
31 31 echo a >> b/a
32 32 echo % commit
33 33 hg --traceback --cwd b commit -Amb
34 34
35 35 echo % push
36 36 hg --traceback --cwd b push ../a 2>&1 |
37 37 python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),' |
38 38 sed -e 's/\(Message-Id:\).*/\1/' \
39 39 -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \
40 -e 's/^Subject: .*test-notify/Subject: test-notify/' \
40 -e 's/^Subject: .*/Subject: test-notify-changegroup/' \
41 41 -e 's/^details: .*test-notify/details: test-notify/' \
42 42 -e 's/^Date:.*/Date:/'
43 43
@@ -1,39 +1,39 b''
1 1 % clone
2 2 updating to branch default
3 3 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
4 4 % commit
5 5 adding a
6 6 % commit
7 7 % push
8 8 pushing to ../a
9 9 searching for changes
10 10 adding changesets
11 11 adding manifests
12 12 adding file changes
13 13 added 2 changesets with 2 changes to 1 files
14 14 Content-Type: text/plain; charset="us-ascii"
15 15 MIME-Version: 1.0
16 16 Content-Transfer-Encoding: 7bit
17 17 Date:
18 Subject: test-notify-changegroup/a: 2 new changesets
18 Subject: test-notify-changegroup
19 19 From: test
20 20 X-Hg-Notification: changeset cb9a9f314b8b
21 21 Message-Id:
22 22 To: baz, foo@bar
23 23
24 24 changeset cb9a9f314b8b in test-notify-changegroup/a
25 25 details: test-notify-changegroup/a?cmd=changeset;node=cb9a9f314b8b
26 26 summary: a
27 27
28 28 changeset ba677d0156c1 in test-notify-changegroup/a
29 29 details: test-notify-changegroup/a?cmd=changeset;node=ba677d0156c1
30 30 summary: b
31 31
32 32 diffs (6 lines):
33 33
34 34 diff -r 000000000000 -r ba677d0156c1 a
35 35 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
36 36 +++ b/a Thu Jan 01 00:00:00 1970 +0000
37 37 @@ -0,0 +1,2 @@
38 38 +a
39 39 +a
General Comments 0
You need to be logged in to leave comments. Login now