notify: fix fromauthor setting for 'incoming' hook type (issue4194) stable
authorBruce Cran <bruce.cran@gmail.com>
Mon, 05 Oct 2015 10:43:16 -0600
branchstable
changeset 26503 5a84a453b503
parent 26502 4ca98a389152
child 26504 875e5d89dc86
child 26535 d3712209921d
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.
hgext/notify.py
--- 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')