Manage Debian patches on a patch queue branch

Variable PATCH_DIR Undocumented
Variable SERIES_FILE Undocumented
Function parse_old_style_topic Parse 'gbp-pq-topic:' line(s) from commit info
Function generate_patches Generate patch files from git
Function compare_series Compare new pathes to lists of patches already exported
Function format_series_diff Format the patch differences into a suitable commit message
Function commit_patches Commit chanages exported from patch queue
Function export_patches Export patches from the pq branch into a patch series
Function safe_patches Safe the current patches in a temporary directory below .git/
Function import_quilt_patches apply a series of quilt patches in the series file 'series' to branch the patch-queue branch for 'branch'
Function rebase_pq Undocumented
Function switch_pq Switch to patch-queue branch if on base branch and vice versa
Function build_parser Undocumented
Function parse_args Undocumented
Function main Undocumented
PATCH_DIR =
Undocumented
(type: str)
SERIES_FILE =
Undocumented
def parse_old_style_topic(commit_info):

Parse 'gbp-pq-topic:' line(s) from commit info

def generate_patches(repo, start, end, outdir, options):

Generate patch files from git

def compare_series(old, new):

Compare new pathes to lists of patches already exported

>>> compare_series(['a', 'b'], ['b', 'c'])
(['c'], ['a'])
>>> compare_series([], [])
([], [])
def format_series_diff(added, removed, options):

Format the patch differences into a suitable commit message

>>> format_series_diff(['a'], ['b'], None)
'Rediff patches\n\nAdded a: <REASON>\nDropped b: <REASON>\n'
def commit_patches(repo, branch, patches, options):

Commit chanages exported from patch queue

def export_patches(repo, branch, options):

Export patches from the pq branch into a patch series

def safe_patches(series, tmpdir_base):

Safe the current patches in a temporary directory below .git/

Parametersseriespath to series file
Returnstmpdir and path to safed series file (type: tuple)
def import_quilt_patches(repo, branch, series, tries, options):

apply a series of quilt patches in the series file 'series' to branch the patch-queue branch for 'branch'

Parametersrepogit repository to work on
branchbranch to base pqtch queue on @param series; series file to read patches from
triestry that many times to apply the patches going back one commit in the branches history after each failure.
optionsgbp-pq command options
def rebase_pq(repo, branch, options):
Undocumented
def switch_pq(repo, current, options):

Switch to patch-queue branch if on base branch and vice versa

def build_parser(name):
Undocumented
def parse_args(argv):
Undocumented
def main(argv):
Undocumented
API Documentation for git-buildpackage, generated by pydoctor at 2020-05-22 08:50:00.