Show More
@@ -0,0 +1,38 b'' | |||||
|
1 | #!/bin/sh | |||
|
2 | ||||
|
3 | cat <<EOF >> $HGRCPATH | |||
|
4 | [extensions] | |||
|
5 | notify= | |||
|
6 | ||||
|
7 | [hooks] | |||
|
8 | incoming.notify = python:hgext.notify.hook | |||
|
9 | ||||
|
10 | [notify] | |||
|
11 | config = $HGTMP/.notify.conf | |||
|
12 | sources = pull | |||
|
13 | domain = test.com | |||
|
14 | strip = 3 | |||
|
15 | template = Subject: {desc|firstline|strip}\nFrom: {author}\n\nchangeset {node|short} in {webroot}\ndescription:\n\t{desc|tabindent|strip} | |||
|
16 | ||||
|
17 | [web] | |||
|
18 | baseurl = http://test/ | |||
|
19 | ||||
|
20 | [usersubs] | |||
|
21 | foo@bar = * | |||
|
22 | EOF | |||
|
23 | ||||
|
24 | hg init a | |||
|
25 | echo a > a/a | |||
|
26 | echo % commit | |||
|
27 | hg --traceback --cwd a commit -Ama -d '0 0' | |||
|
28 | ||||
|
29 | echo % clone | |||
|
30 | hg --traceback clone a b | |||
|
31 | ||||
|
32 | echo a >> a/a | |||
|
33 | echo % commit | |||
|
34 | hg --traceback --cwd a commit -Amb -d '1 0' | |||
|
35 | ||||
|
36 | echo % pull | |||
|
37 | hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ | |||
|
38 | -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' |
@@ -0,0 +1,35 b'' | |||||
|
1 | % commit | |||
|
2 | adding a | |||
|
3 | % clone | |||
|
4 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
5 | % commit | |||
|
6 | % pull | |||
|
7 | pulling from ../a | |||
|
8 | searching for changes | |||
|
9 | adding changesets | |||
|
10 | adding manifests | |||
|
11 | adding file changes | |||
|
12 | added 1 changesets with 1 changes to 1 files | |||
|
13 | Subject: b | |||
|
14 | From: test@test.com | |||
|
15 | X-Hg-Notification: changeset 0647d048b600 | |||
|
16 | Message-Id: | |||
|
17 | To: foo@bar | |||
|
18 | ||||
|
19 | changeset 0647d048b600 | |||
|
20 | description: | |||
|
21 | b | |||
|
22 | diffstat: | |||
|
23 | ||||
|
24 | 1 file changed, 1 insertion(+) | |||
|
25 | a | 1 + | |||
|
26 | ||||
|
27 | diffs (6 lines): | |||
|
28 | ||||
|
29 | diff -r cb9a9f314b8b -r 0647d048b600 a | |||
|
30 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |||
|
31 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 | |||
|
32 | @@ -1,1 +1,2 @@ a | |||
|
33 | a | |||
|
34 | +a | |||
|
35 | (run 'hg update' to get a working copy) |
General Comments 0
You need to be logged in to leave comments.
Login now