notify: make it possible to pass extra info into templates

This commit is contained in:
Bryan O'Sullivan 2009-08-24 16:30:42 -07:00
parent fbdff4820a
commit f90184795a

View File

@ -165,11 +165,11 @@ class notifier(object):
def url(self, path=None):
return self.ui.config('web', 'baseurl') + (path or self.root)
def node(self, ctx):
def node(self, ctx, **props):
'''format one changeset.'''
self.t.show(ctx, changes=ctx.changeset(),
baseurl=self.ui.config('web', 'baseurl'),
root=self.repo.root, webroot=self.root)
root=self.repo.root, webroot=self.root, **props)
def skipsource(self, source):
'''true if incoming changes from this source should be skipped.'''