# HG changeset patch # User Bruce Cran # Date 2015-10-05 16:43:16 # Node ID 5a84a453b503d13b7a540cded3d52d0b50e3a57a # Parent 4ca98a3891526b825ec490e9055aa1c4a91db9ae 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. diff --git a/hgext/notify.py b/hgext/notify.py --- a/hgext/notify.py +++ b/hgext/notify.py @@ -406,6 +406,8 @@ def hook(ui, repo, hooktype, node=None, return count += 1 n.diff(ctx) + if not author: + author = ctx.user() data += ui.popbuffer() fromauthor = ui.config('notify', 'fromauthor')