mercurial/crew
changeset 9105:6188f2cc4a37
notify: fix indentation in module docstring
| author | Martin Geisler <mg@lazybytes.net> |
|---|---|
| date | Thu Jul 09 22:43:24 2009 +0200 (13 months ago) |
| parents | c9c5aa12a46e |
| children | 7705d184faa1 |
| files | hgext/notify.py tests/test-notify.out |
line diff
1.1 --- a/hgext/notify.py 1.2 +++ b/hgext/notify.py 1.3 @@ -12,56 +12,56 @@ 1.4 1.5 To use, configure the notify extension and enable it in hgrc like this: 1.6 1.7 - [extensions] 1.8 - hgext.notify = 1.9 + [extensions] 1.10 + hgext.notify = 1.11 1.12 - [hooks] 1.13 - # one email for each incoming changeset 1.14 - incoming.notify = python:hgext.notify.hook 1.15 - # batch emails when many changesets incoming at one time 1.16 - changegroup.notify = python:hgext.notify.hook 1.17 + [hooks] 1.18 + # one email for each incoming changeset 1.19 + incoming.notify = python:hgext.notify.hook 1.20 + # batch emails when many changesets incoming at one time 1.21 + changegroup.notify = python:hgext.notify.hook 1.22 1.23 - [notify] 1.24 - # config items go here 1.25 + [notify] 1.26 + # config items go here 1.27 1.28 - Required configuration items: 1.29 +Required configuration items: 1.30 1.31 - config = /path/to/file # file containing subscriptions 1.32 + config = /path/to/file # file containing subscriptions 1.33 1.34 - Optional configuration items: 1.35 +Optional configuration items: 1.36 1.37 - test = True # print messages to stdout for testing 1.38 - strip = 3 # number of slashes to strip for url paths 1.39 - domain = example.com # domain to use if committer missing domain 1.40 - style = ... # style file to use when formatting email 1.41 - template = ... # template to use when formatting email 1.42 - incoming = ... # template to use when run as incoming hook 1.43 - changegroup = ... # template when run as changegroup hook 1.44 - maxdiff = 300 # max lines of diffs to include (0=none, -1=all) 1.45 - maxsubject = 67 # truncate subject line longer than this 1.46 - diffstat = True # add a diffstat before the diff content 1.47 - sources = serve # notify if source of incoming changes in this list 1.48 - # (serve == ssh or http, push, pull, bundle) 1.49 - [email] 1.50 - from = user@host.com # email address to send as if none given 1.51 - [web] 1.52 - baseurl = http://hgserver/... # root of hg web site for browsing commits 1.53 + test = True # print messages to stdout for testing 1.54 + strip = 3 # number of slashes to strip for url paths 1.55 + domain = example.com # domain to use if committer missing domain 1.56 + style = ... # style file to use when formatting email 1.57 + template = ... # template to use when formatting email 1.58 + incoming = ... # template to use when run as incoming hook 1.59 + changegroup = ... # template when run as changegroup hook 1.60 + maxdiff = 300 # max lines of diffs to include (0=none, -1=all) 1.61 + maxsubject = 67 # truncate subject line longer than this 1.62 + diffstat = True # add a diffstat before the diff content 1.63 + sources = serve # notify if source of incoming changes in this list 1.64 + # (serve == ssh or http, push, pull, bundle) 1.65 + [email] 1.66 + from = user@host.com # email address to send as if none given 1.67 + [web] 1.68 + baseurl = http://hgserver/... # root of hg web site for browsing commits 1.69 1.70 - The notify config file has same format as a regular hgrc file. It has two 1.71 - sections so you can express subscriptions in whatever way is handier for you. 1.72 +The notify config file has same format as a regular hgrc file. It has two 1.73 +sections so you can express subscriptions in whatever way is handier for you. 1.74 1.75 - [usersubs] 1.76 - # key is subscriber email, value is ","-separated list of glob patterns 1.77 - user@host = pattern 1.78 + [usersubs] 1.79 + # key is subscriber email, value is ","-separated list of glob patterns 1.80 + user@host = pattern 1.81 1.82 - [reposubs] 1.83 - # key is glob pattern, value is ","-separated list of subscriber emails 1.84 - pattern = user@host 1.85 + [reposubs] 1.86 + # key is glob pattern, value is ","-separated list of subscriber emails 1.87 + pattern = user@host 1.88 1.89 - Glob patterns are matched against path to repository root. 1.90 +Glob patterns are matched against path to repository root. 1.91 1.92 - If you like, you can put notify config file in repository that users can push 1.93 - changes to, they can manage their own subscriptions. 1.94 +If you like, you can put notify config file in repository that users can push 1.95 +changes to, they can manage their own subscriptions. 1.96 ''' 1.97 1.98 from mercurial.i18n import _
2.1 --- a/tests/test-notify.out 2.2 +++ b/tests/test-notify.out 2.3 @@ -5,56 +5,56 @@ 2.4 2.5 To use, configure the notify extension and enable it in hgrc like this: 2.6 2.7 - [extensions] 2.8 - hgext.notify = 2.9 + [extensions] 2.10 + hgext.notify = 2.11 2.12 - [hooks] 2.13 - # one email for each incoming changeset 2.14 - incoming.notify = python:hgext.notify.hook 2.15 - # batch emails when many changesets incoming at one time 2.16 - changegroup.notify = python:hgext.notify.hook 2.17 + [hooks] 2.18 + # one email for each incoming changeset 2.19 + incoming.notify = python:hgext.notify.hook 2.20 + # batch emails when many changesets incoming at one time 2.21 + changegroup.notify = python:hgext.notify.hook 2.22 2.23 - [notify] 2.24 - # config items go here 2.25 + [notify] 2.26 + # config items go here 2.27 2.28 - Required configuration items: 2.29 +Required configuration items: 2.30 2.31 - config = /path/to/file # file containing subscriptions 2.32 + config = /path/to/file # file containing subscriptions 2.33 2.34 - Optional configuration items: 2.35 +Optional configuration items: 2.36 2.37 - test = True # print messages to stdout for testing 2.38 - strip = 3 # number of slashes to strip for url paths 2.39 - domain = example.com # domain to use if committer missing domain 2.40 - style = ... # style file to use when formatting email 2.41 - template = ... # template to use when formatting email 2.42 - incoming = ... # template to use when run as incoming hook 2.43 - changegroup = ... # template when run as changegroup hook 2.44 - maxdiff = 300 # max lines of diffs to include (0=none, -1=all) 2.45 - maxsubject = 67 # truncate subject line longer than this 2.46 - diffstat = True # add a diffstat before the diff content 2.47 - sources = serve # notify if source of incoming changes in this list 2.48 - # (serve == ssh or http, push, pull, bundle) 2.49 - [email] 2.50 - from = user@host.com # email address to send as if none given 2.51 - [web] 2.52 - baseurl = http://hgserver/... # root of hg web site for browsing commits 2.53 + test = True # print messages to stdout for testing 2.54 + strip = 3 # number of slashes to strip for url paths 2.55 + domain = example.com # domain to use if committer missing domain 2.56 + style = ... # style file to use when formatting email 2.57 + template = ... # template to use when formatting email 2.58 + incoming = ... # template to use when run as incoming hook 2.59 + changegroup = ... # template when run as changegroup hook 2.60 + maxdiff = 300 # max lines of diffs to include (0=none, -1=all) 2.61 + maxsubject = 67 # truncate subject line longer than this 2.62 + diffstat = True # add a diffstat before the diff content 2.63 + sources = serve # notify if source of incoming changes in this list 2.64 + # (serve == ssh or http, push, pull, bundle) 2.65 + [email] 2.66 + from = user@host.com # email address to send as if none given 2.67 + [web] 2.68 + baseurl = http://hgserver/... # root of hg web site for browsing commits 2.69 2.70 - The notify config file has same format as a regular hgrc file. It has two 2.71 - sections so you can express subscriptions in whatever way is handier for you. 2.72 +The notify config file has same format as a regular hgrc file. It has two 2.73 +sections so you can express subscriptions in whatever way is handier for you. 2.74 2.75 - [usersubs] 2.76 - # key is subscriber email, value is ","-separated list of glob patterns 2.77 - user@host = pattern 2.78 + [usersubs] 2.79 + # key is subscriber email, value is ","-separated list of glob patterns 2.80 + user@host = pattern 2.81 2.82 - [reposubs] 2.83 - # key is glob pattern, value is ","-separated list of subscriber emails 2.84 - pattern = user@host 2.85 + [reposubs] 2.86 + # key is glob pattern, value is ","-separated list of subscriber emails 2.87 + pattern = user@host 2.88 2.89 - Glob patterns are matched against path to repository root. 2.90 +Glob patterns are matched against path to repository root. 2.91 2.92 - If you like, you can put notify config file in repository that users can push 2.93 - changes to, they can manage their own subscriptions. 2.94 +If you like, you can put notify config file in repository that users can push 2.95 +changes to, they can manage their own subscriptions. 2.96 2.97 no commands defined 2.98 % commit
