Patchwork [2,of,5] configitems: register the 'smtp.port' config

login
register
mail settings
Submitter Boris Feld
Date Oct. 4, 2017, 2:33 p.m.
Message ID <bde8c9cabe31010b8003.1507127621@FB>
Download mbox | patch
Permalink /patch/24485/
State Accepted
Headers show

Comments

Boris Feld - Oct. 4, 2017, 2:33 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498787064 -7200
#      Fri Jun 30 03:44:24 2017 +0200
# Node ID bde8c9cabe31010b800392507dd3ac7b524d8ec6
# Parent  1b1349c23e37cfc6e82ea05ad4bbf8fbcfc9aa09
# EXP-Topic config.register.core
configitems: register the 'smtp.port' config

Patch

diff -r 1b1349c23e37 -r bde8c9cabe31 mercurial/configitems.py
--- a/mercurial/configitems.py	Fri Jun 30 03:43:48 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:44:24 2017 +0200
@@ -428,6 +428,9 @@ 
 coreconfigitem('smtp', 'password',
     default=None,
 )
+coreconfigitem('smtp', 'port',
+    default=dynamicdefault,
+)
 coreconfigitem('smtp', 'tls',
     default='none',
 )