Show More
@@ -0,0 +1,43 b'' | |||||
|
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 |
@@ -0,0 +1,36 b'' | |||||
|
1 | % clone | |||
|
2 | updating working directory | |||
|
3 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
4 | % commit | |||
|
5 | adding a | |||
|
6 | % commit | |||
|
7 | % push | |||
|
8 | pushing to ../a | |||
|
9 | searching for changes | |||
|
10 | adding changesets | |||
|
11 | adding manifests | |||
|
12 | adding file changes | |||
|
13 | added 2 changesets with 2 changes to 1 files | |||
|
14 | Date: | |||
|
15 | Subject: test-notify-changegroup/a: 2 new changesets | |||
|
16 | From: test | |||
|
17 | X-Hg-Notification: changeset cb9a9f314b8b | |||
|
18 | Message-Id: | |||
|
19 | To: baz, foo@bar | |||
|
20 | ||||
|
21 | changeset cb9a9f314b8b in test-notify-changegroup/a | |||
|
22 | details: test-notify-changegroup/a?cmd=changeset;node=cb9a9f314b8b | |||
|
23 | summary: a | |||
|
24 | ||||
|
25 | changeset ba677d0156c1 in test-notify-changegroup/a | |||
|
26 | details: test-notify-changegroup/a?cmd=changeset;node=ba677d0156c1 | |||
|
27 | summary: b | |||
|
28 | ||||
|
29 | diffs (6 lines): | |||
|
30 | ||||
|
31 | diff -r 000000000000 -r ba677d0156c1 a | |||
|
32 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |||
|
33 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |||
|
34 | @@ -0,0 +1,2 @@ | |||
|
35 | +a | |||
|
36 | +a |
General Comments 0
You need to be logged in to leave comments.
Login now