# HG changeset patch # User Bruce Cran # Date 1444063396 21600 # 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 -r 4ca98a389152 -r 5a84a453b503 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')