Mercurial > hg
changeset 33742:66860180b009
configitems: register the 'notify.maxdiff' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:43:23 +0200 |
parents | b14be4deac06 |
children | 3d08f4810690 |
files | hgext/notify.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/notify.py Fri Jun 30 03:43:22 2017 +0200 +++ b/hgext/notify.py Fri Jun 30 03:43:23 2017 +0200 @@ -170,6 +170,9 @@ configitem('notify', 'fromauthor', default=None, ) +configitem('notify', 'maxdiff', + default=300, +) # template for single changeset can include email headers. single_template = ''' @@ -367,7 +370,7 @@ def diff(self, ctx, ref=None): - maxdiff = int(self.ui.config('notify', 'maxdiff', 300)) + maxdiff = int(self.ui.config('notify', 'maxdiff')) prev = ctx.p1().node() if ref: ref = ref.node()