comparison hgext/notify.py @ 8027:9c7ca86fc658

expand "repo" to "repository" in help texts
author Martin Geisler <mg@lazybytes.net>
date Tue, 07 Apr 2009 22:58:05 +0200
parents 4a4c7f6a5912
children e0c434abd530
comparison
equal deleted inserted replaced
8026:683d8ebcf434 8027:9c7ca86fc658
57 57
58 [reposubs] 58 [reposubs]
59 # key is glob pattern, value is ","-separated list of subscriber emails 59 # key is glob pattern, value is ","-separated list of subscriber emails
60 pattern = user@host 60 pattern = user@host
61 61
62 glob patterns are matched against path to repo root. 62 glob patterns are matched against path to repository root.
63 63
64 if you like, you can put notify config file in repo that users can 64 if you like, you can put notify config file in repository that users can
65 push changes to, they can manage their own subscriptions.''' 65 push changes to, they can manage their own subscriptions.'''
66 66
67 from mercurial.i18n import _ 67 from mercurial.i18n import _
68 from mercurial import patch, cmdutil, templater, util, mail 68 from mercurial import patch, cmdutil, templater, util, mail
69 import email.Parser, fnmatch, socket, time 69 import email.Parser, fnmatch, socket, time
266 266
267 n = notifier(ui, repo, hooktype) 267 n = notifier(ui, repo, hooktype)
268 ctx = repo[node] 268 ctx = repo[node]
269 269
270 if not n.subs: 270 if not n.subs:
271 ui.debug(_('notify: no subscribers to repo %s\n') % n.root) 271 ui.debug(_('notify: no subscribers to repository %s\n') % n.root)
272 return 272 return
273 if n.skipsource(source): 273 if n.skipsource(source):
274 ui.debug(_('notify: changes have source "%s" - skipping\n') % source) 274 ui.debug(_('notify: changes have source "%s" - skipping\n') % source)
275 return 275 return
276 276