equal
deleted
inserted
replaced
|
1 #!/bin/sh |
|
2 |
|
3 cat <<EOF >> $HGRCPATH |
|
4 [extensions] |
|
5 notify= |
|
6 |
|
7 [hooks] |
|
8 changegroup.notify = python:hgext.notify.hook |
|
9 |
|
10 [notify] |
|
11 sources = push |
|
12 diffstat = False |
|
13 maxsubject = 200 |
|
14 |
|
15 [usersubs] |
|
16 foo@bar = * |
|
17 |
|
18 [reposubs] |
|
19 * = baz |
|
20 EOF |
|
21 |
|
22 hg init a |
|
23 |
|
24 echo % clone |
|
25 hg --traceback clone a b |
|
26 |
|
27 echo a > b/a |
|
28 echo % commit |
|
29 hg --traceback --cwd b commit -Ama |
|
30 |
|
31 echo a >> b/a |
|
32 echo % commit |
|
33 hg --traceback --cwd b commit -Amb |
|
34 |
|
35 echo % push |
|
36 hg --traceback --cwd b push ../a 2>&1 | |
|
37 python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),' | |
|
38 sed -e 's/\(Message-Id:\).*/\1/' \ |
|
39 -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \ |
|
40 -e 's/^Subject: .*test-notify/Subject: test-notify/' \ |
|
41 -e 's/^details: .*test-notify/details: test-notify/' \ |
|
42 -e 's/^Date:.*/Date:/' |
|
43 |