hgext/releasenotes.py
changeset 48946 642e31cb55f0
parent 48913 f254fc73d956
child 49306 2e726c934fcd
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
    75 RE_ISSUE = br'\bissue ?[0-9]{4,6}(?![0-9])\b'
    75 RE_ISSUE = br'\bissue ?[0-9]{4,6}(?![0-9])\b'
    76 
    76 
    77 BULLET_SECTION = _(b'Other Changes')
    77 BULLET_SECTION = _(b'Other Changes')
    78 
    78 
    79 
    79 
    80 class parsedreleasenotes(object):
    80 class parsedreleasenotes:
    81     def __init__(self):
    81     def __init__(self):
    82         self.sections = {}
    82         self.sections = {}
    83 
    83 
    84     def __contains__(self, section):
    84     def __contains__(self, section):
    85         return section in self.sections
    85         return section in self.sections
   168                     continue
   168                     continue
   169 
   169 
   170                 self.addnontitleditem(section, paragraphs)
   170                 self.addnontitleditem(section, paragraphs)
   171 
   171 
   172 
   172 
   173 class releasenotessections(object):
   173 class releasenotessections:
   174     def __init__(self, ui, repo=None):
   174     def __init__(self, ui, repo=None):
   175         if repo:
   175         if repo:
   176             sections = util.sortdict(DEFAULT_SECTIONS)
   176             sections = util.sortdict(DEFAULT_SECTIONS)
   177             custom_sections = getcustomadmonitions(repo)
   177             custom_sections = getcustomadmonitions(repo)
   178             if custom_sections:
   178             if custom_sections: