changeset 26503:5a84a453b503 stable

notify: fix fromauthor setting for 'incoming' hook type (issue4194) Set the author field in notification emails for the 'incoming' hook type in addition to 'changegroup' and 'outgoing' types.
author Bruce Cran <bruce.cran@gmail.com>
date Mon, 05 Oct 2015 10:43:16 -0600
parents 4ca98a389152
children 875e5d89dc86 d3712209921d
files hgext/notify.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/notify.py	Mon Oct 05 12:37:26 2015 -0400
+++ b/hgext/notify.py	Mon Oct 05 10:43:16 2015 -0600
@@ -406,6 +406,8 @@
             return
         count += 1
         n.diff(ctx)
+        if not author:
+            author = ctx.user()
 
     data += ui.popbuffer()
     fromauthor = ui.config('notify', 'fromauthor')