comparison tests/test-notify.out @ 9068:27a41250a9ce

notify: wrapped docstrings at 78 characters
author Martin Geisler <mg@lazybytes.net>
date Tue, 07 Jul 2009 23:54:42 +0200
parents f4f0e902b750
children c9c5aa12a46e
comparison
equal deleted inserted replaced
9067:2ebac2bf7ad5 9068:27a41250a9ce
1 notify extension - hooks for sending email notifications at commit/push time 1 notify extension - hooks for sending email notifications at commit/push time
2 2
3 Subscriptions can be managed through hgrc. Default mode is to print 3 Subscriptions can be managed through hgrc. Default mode is to print messages
4 messages to stdout, for testing and configuring. 4 to stdout, for testing and configuring.
5 5
6 To use, configure notify extension and enable in hgrc like this: 6 To use, configure notify extension and enable in hgrc like this:
7 7
8 [extensions] 8 [extensions]
9 hgext.notify = 9 hgext.notify =
38 [email] 38 [email]
39 from = user@host.com # email address to send as if none given 39 from = user@host.com # email address to send as if none given
40 [web] 40 [web]
41 baseurl = http://hgserver/... # root of hg web site for browsing commits 41 baseurl = http://hgserver/... # root of hg web site for browsing commits
42 42
43 notify config file has same format as regular hgrc. it has two 43 notify config file has same format as regular hgrc. it has two sections so
44 sections so you can express subscriptions in whatever way is handier 44 you can express subscriptions in whatever way is handier for you.
45 for you.
46 45
47 [usersubs] 46 [usersubs]
48 # key is subscriber email, value is ","-separated list of glob patterns 47 # key is subscriber email, value is ","-separated list of glob patterns
49 user@host = pattern 48 user@host = pattern
50 49
52 # key is glob pattern, value is ","-separated list of subscriber emails 51 # key is glob pattern, value is ","-separated list of subscriber emails
53 pattern = user@host 52 pattern = user@host
54 53
55 glob patterns are matched against path to repository root. 54 glob patterns are matched against path to repository root.
56 55
57 if you like, you can put notify config file in repository that users 56 if you like, you can put notify config file in repository that users can push
58 can push changes to, they can manage their own subscriptions. 57 changes to, they can manage their own subscriptions.
59 58
60 no commands defined 59 no commands defined
61 % commit 60 % commit
62 adding a 61 adding a
63 % clone 62 % clone