notify: make it possible to pass extra info into templates
authorBryan O'Sullivan <bos@serpentine.com>
Mon, 24 Aug 2009 16:30:42 -0700
changeset 9486 dd8d10c36c9c
parent 9387 20ed9909dbd9
child 9487 90ae579924e4
notify: make it possible to pass extra info into templates
hgext/notify.py
--- a/hgext/notify.py	Sat Aug 22 19:40:15 2009 +0200
+++ b/hgext/notify.py	Mon Aug 24 16:30:42 2009 -0700
@@ -165,11 +165,11 @@
     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.'''