Show More
@@ -12,56 +12,56 b' messages to stdout, for testing and conf' | |||||
12 |
|
12 | |||
13 | To use, configure the notify extension and enable it in hgrc like this: |
|
13 | To use, configure the notify extension and enable it in hgrc like this: | |
14 |
|
14 | |||
15 |
|
|
15 | [extensions] | |
16 |
|
|
16 | hgext.notify = | |
17 |
|
17 | |||
18 |
|
|
18 | [hooks] | |
19 |
|
|
19 | # one email for each incoming changeset | |
20 |
|
|
20 | incoming.notify = python:hgext.notify.hook | |
21 |
|
|
21 | # batch emails when many changesets incoming at one time | |
22 |
|
|
22 | changegroup.notify = python:hgext.notify.hook | |
23 |
|
23 | |||
24 |
|
|
24 | [notify] | |
25 |
|
|
25 | # config items go here | |
26 |
|
26 | |||
27 |
|
|
27 | Required configuration items: | |
28 |
|
28 | |||
29 |
|
|
29 | config = /path/to/file # file containing subscriptions | |
30 |
|
30 | |||
31 |
|
|
31 | Optional configuration items: | |
32 |
|
32 | |||
33 |
|
|
33 | test = True # print messages to stdout for testing | |
34 |
|
|
34 | strip = 3 # number of slashes to strip for url paths | |
35 |
|
|
35 | domain = example.com # domain to use if committer missing domain | |
36 |
|
|
36 | style = ... # style file to use when formatting email | |
37 |
|
|
37 | template = ... # template to use when formatting email | |
38 |
|
|
38 | incoming = ... # template to use when run as incoming hook | |
39 |
|
|
39 | changegroup = ... # template when run as changegroup hook | |
40 |
|
|
40 | maxdiff = 300 # max lines of diffs to include (0=none, -1=all) | |
41 |
|
|
41 | maxsubject = 67 # truncate subject line longer than this | |
42 |
|
|
42 | diffstat = True # add a diffstat before the diff content | |
43 |
|
|
43 | sources = serve # notify if source of incoming changes in this list | |
44 |
|
|
44 | # (serve == ssh or http, push, pull, bundle) | |
45 |
|
|
45 | [email] | |
46 |
|
|
46 | from = user@host.com # email address to send as if none given | |
47 |
|
|
47 | [web] | |
48 |
|
|
48 | baseurl = http://hgserver/... # root of hg web site for browsing commits | |
49 |
|
49 | |||
50 |
|
|
50 | The notify config file has same format as a regular hgrc file. It has two | |
51 |
|
|
51 | sections so you can express subscriptions in whatever way is handier for you. | |
52 |
|
52 | |||
53 |
|
|
53 | [usersubs] | |
54 |
|
|
54 | # key is subscriber email, value is ","-separated list of glob patterns | |
55 |
|
|
55 | user@host = pattern | |
56 |
|
56 | |||
57 |
|
|
57 | [reposubs] | |
58 |
|
|
58 | # key is glob pattern, value is ","-separated list of subscriber emails | |
59 |
|
|
59 | pattern = user@host | |
60 |
|
60 | |||
61 |
|
|
61 | Glob patterns are matched against path to repository root. | |
62 |
|
62 | |||
63 |
|
|
63 | If you like, you can put notify config file in repository that users can push | |
64 |
|
|
64 | changes to, they can manage their own subscriptions. | |
65 | ''' |
|
65 | ''' | |
66 |
|
66 | |||
67 | from mercurial.i18n import _ |
|
67 | from mercurial.i18n import _ |
@@ -5,56 +5,56 b' messages to stdout, for testing and conf' | |||||
5 |
|
5 | |||
6 | To use, configure the notify extension and enable it in hgrc like this: |
|
6 | To use, configure the notify extension and enable it in hgrc like this: | |
7 |
|
7 | |||
8 |
|
|
8 | [extensions] | |
9 |
|
|
9 | hgext.notify = | |
10 |
|
10 | |||
11 |
|
|
11 | [hooks] | |
12 |
|
|
12 | # one email for each incoming changeset | |
13 |
|
|
13 | incoming.notify = python:hgext.notify.hook | |
14 |
|
|
14 | # batch emails when many changesets incoming at one time | |
15 |
|
|
15 | changegroup.notify = python:hgext.notify.hook | |
16 |
|
16 | |||
17 |
|
|
17 | [notify] | |
18 |
|
|
18 | # config items go here | |
19 |
|
19 | |||
20 |
|
|
20 | Required configuration items: | |
21 |
|
21 | |||
22 |
|
|
22 | config = /path/to/file # file containing subscriptions | |
23 |
|
23 | |||
24 |
|
|
24 | Optional configuration items: | |
25 |
|
25 | |||
26 |
|
|
26 | test = True # print messages to stdout for testing | |
27 |
|
|
27 | strip = 3 # number of slashes to strip for url paths | |
28 |
|
|
28 | domain = example.com # domain to use if committer missing domain | |
29 |
|
|
29 | style = ... # style file to use when formatting email | |
30 |
|
|
30 | template = ... # template to use when formatting email | |
31 |
|
|
31 | incoming = ... # template to use when run as incoming hook | |
32 |
|
|
32 | changegroup = ... # template when run as changegroup hook | |
33 |
|
|
33 | maxdiff = 300 # max lines of diffs to include (0=none, -1=all) | |
34 |
|
|
34 | maxsubject = 67 # truncate subject line longer than this | |
35 |
|
|
35 | diffstat = True # add a diffstat before the diff content | |
36 |
|
|
36 | sources = serve # notify if source of incoming changes in this list | |
37 |
|
|
37 | # (serve == ssh or http, push, pull, bundle) | |
38 |
|
|
38 | [email] | |
39 |
|
|
39 | from = user@host.com # email address to send as if none given | |
40 |
|
|
40 | [web] | |
41 |
|
|
41 | baseurl = http://hgserver/... # root of hg web site for browsing commits | |
42 |
|
42 | |||
43 |
|
|
43 | The notify config file has same format as a regular hgrc file. It has two | |
44 |
|
|
44 | sections so you can express subscriptions in whatever way is handier for you. | |
45 |
|
45 | |||
46 |
|
|
46 | [usersubs] | |
47 |
|
|
47 | # key is subscriber email, value is ","-separated list of glob patterns | |
48 |
|
|
48 | user@host = pattern | |
49 |
|
49 | |||
50 |
|
|
50 | [reposubs] | |
51 |
|
|
51 | # key is glob pattern, value is ","-separated list of subscriber emails | |
52 |
|
|
52 | pattern = user@host | |
53 |
|
53 | |||
54 |
|
|
54 | Glob patterns are matched against path to repository root. | |
55 |
|
55 | |||
56 |
|
|
56 | If you like, you can put notify config file in repository that users can push | |
57 |
|
|
57 | changes to, they can manage their own subscriptions. | |
58 |
|
58 | |||
59 | no commands defined |
|
59 | no commands defined | |
60 | % commit |
|
60 | % commit |
General Comments 0
You need to be logged in to leave comments.
Login now