comparison hgext/notify.py @ 3877:abaee83ce0a6

Replace demandload with new demandimport
author Matt Mackall <mpm@selenic.com>
date Wed, 13 Dec 2006 13:27:09 -0600
parents 1e0b94cfba0e
children 6b4127c7d52a
comparison
equal deleted inserted replaced
3876:1e0b94cfba0e 3877:abaee83ce0a6
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}