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