63 # glob patterns are matched against path to repo root. |
63 # glob patterns are matched against path to repo root. |
64 # |
64 # |
65 # if you like, you can put notify config file in repo that users can |
65 # if you like, you can put notify config file in repo that users can |
66 # push changes to, they can manage their own subscriptions. |
66 # push changes to, they can manage their own subscriptions. |
67 |
67 |
68 from mercurial.demandload import * |
|
69 from mercurial.i18n import gettext as _ |
68 from mercurial.i18n import gettext as _ |
70 from mercurial.node import * |
69 from mercurial.node import * |
71 demandload(globals(), 'mercurial:patch,cmdutil,templater,util,mail') |
70 from mercurial import patch, cmdutil, templater, util, mail |
72 demandload(globals(), 'email.Parser fnmatch socket time') |
71 import email.Parser, fnmatch, socket, time |
73 |
72 |
74 # template for single changeset can include email headers. |
73 # template for single changeset can include email headers. |
75 single_template = ''' |
74 single_template = ''' |
76 Subject: changeset in {webroot}: {desc|firstline|strip} |
75 Subject: changeset in {webroot}: {desc|firstline|strip} |
77 From: {author} |
76 From: {author} |