Package gbp :: Module dch
[hide private]
[frames] | no frames]

Module dch

provides git-dch helpers

Functions [hide private]
 
extract_git_dch_cmds(lines, options)
Return a dictionary of all Git-Dch: commands found in lines.
 
filter_ignore_rx_matches(lines, options)
Filter any lines that match options.ignore_regex (i.e.
 
extract_bts_cmds(lines, opts)
Return a dictionary of the bug tracking system commands contained in the the given lines.
 
extract_thanks_info(lines, options)
Return a list of all of the Thanks: entries, and a list of all of the lines that do not contain Thanks: entries.
 
_ispunct(ch)
 
terminate_first_line_if_needed(lines)
Terminate the first line of lines with a '.' if multi-line.
 
format_changelog_entry(commit_info, options, last_commit=False)
Return a list of lines (without newlines) as the changelog entry for commit_info (generated by GitRepository.get_commit_info()).
Variables [hide private]
  MAX_CHANGELOG_LINE_LENGTH = 76
  _bug_r = '(?:bug|issue)?\\#?\\s?\\d+'
  _bug_re = re.compile(r'(?i)(?:bug|issue)?#?\s?\d+')
  __package__ = 'gbp'
Function Details [hide private]

extract_git_dch_cmds(lines, options)

 

Return a dictionary of all Git-Dch: commands found in lines. The command keys will be lowercased, i.e. {'ignore' : True, 'short': True}. For now, all the options are binary. Also return all of the lines that do not contain Git-Dch: commands.

filter_ignore_rx_matches(lines, options)

 

Filter any lines that match options.ignore_regex (i.e. --ignore-regex).

extract_bts_cmds(lines, opts)

 

Return a dictionary of the bug tracking system commands contained in the the given lines. i.e. {'closed' : [1], 'fixed': [3, 4]}. Right now, this will only notice a single directive clause on a line. Also return all of the lines that do not contain bug tracking system commands.

format_changelog_entry(commit_info, options, last_commit=False)

 

Return a list of lines (without newlines) as the changelog entry for commit_info (generated by GitRepository.get_commit_info()). If last_commit is not False, then this entry is the last one in the series.