# HG changeset patch # User Bryan O'Sullivan # Date 2009-08-24 23:30:42 # Node ID dd8d10c36c9c0af2df65cce1644cf81c8173dc0a # Parent 20ed9909dbd9251f76cacb463c480488eebf736b notify: make it possible to pass extra info into templates diff --git a/hgext/notify.py b/hgext/notify.py --- a/hgext/notify.py +++ b/hgext/notify.py @@ -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.'''