hgext/notify.py
changeset 33738 2069a8c336b9
parent 32839 b425ec7fb7f6
child 33739 b30da11d9233
equal deleted inserted replaced
33737:02a745c20121 33738:2069a8c336b9
   143 from mercurial import (
   143 from mercurial import (
   144     cmdutil,
   144     cmdutil,
   145     error,
   145     error,
   146     mail,
   146     mail,
   147     patch,
   147     patch,
       
   148     registrar,
   148     util,
   149     util,
   149 )
   150 )
   150 
   151 
   151 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
   152 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
   152 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
   153 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
   153 # be specifying the version(s) of Mercurial they are tested with, or
   154 # be specifying the version(s) of Mercurial they are tested with, or
   154 # leave the attribute unspecified.
   155 # leave the attribute unspecified.
   155 testedwith = 'ships-with-hg-core'
   156 testedwith = 'ships-with-hg-core'
       
   157 
       
   158 configtable = {}
       
   159 configitem = registrar.configitem(configtable)
       
   160 
       
   161 configitem('notify', 'config',
       
   162     default=None,
       
   163 )
   156 
   164 
   157 # template for single changeset can include email headers.
   165 # template for single changeset can include email headers.
   158 single_template = '''
   166 single_template = '''
   159 Subject: changeset in {webroot}: {desc|firstline|strip}
   167 Subject: changeset in {webroot}: {desc|firstline|strip}
   160 From: {author}
   168 From: {author}