module documentation
Common functionality for Debian and RPM patchqueue management
| Function | apply |
apply a single patch 'patch', add topic 'topic' and commit it |
| Function | apply |
Undocumented |
| Function | drop |
Undocumented |
| Function | format |
Create a patch of diff between two repository objects |
| Function | format |
Create patch of a single commit |
| Function | get |
Get the maintainer from the control file |
| Function | is |
is branch a patch-queue branch? |
| Function | parse |
Parses gbp commands from commit message. Args with and wthout arguments are supported as is filtering out of commands from the commit body. |
| Function | patch |
Create patch include paths, i.e. a "negation" of the exclude paths. |
| Function | pq |
get the branch corresponding to the given patch queue branch |
| Function | pq |
get the patch queue branch corresponding to branch |
| Function | switch |
Switch to patch-queue branch if not already on it. doesn't exist yet |
| Function | write |
Write patch file |
| Constant | DEFAULT |
Undocumented |
| Constant | PQ |
Undocumented |
def format_patch(outdir, repo, commit_info, series, abbrev, numbered=True, path_exclude_regex=None, topic='', name=None, renumber=False, patch_num_prefix_format=DEFAULT_PATCH_NUM_PREFIX_FORMAT):
¶
Create patch of a single commit
is branch a patch-queue branch?
>>> is_pq_branch("foo") False >>> is_pq_branch("patch-queue/foo") True
Parses gbp commands from commit message. Args with and wthout arguments are supported as is filtering out of commands from the commit body.
| Parameters | |
| info | the commit into to parse for commands |
| cmd | the command tag |
| noarg | commands without an argument |
| arg | command with an argumnt |
| filter | commands to filter out of the passed in info |
| Returns | |
| the parsed commands and the filtered commit body. | |
get the branch corresponding to the given patch queue branch
>>> pq_branch_base("patch-queue/master") 'master' >>> pq_branch_base("foo") 'foo'
get the patch queue branch corresponding to branch
>>> pq_branch_name("patch-queue/master") 'patch-queue/master' >>> pq_branch_name("foo") 'patch-queue/foo'