Package gbp :: Package scripts :: Package common :: Module pq
[hide private]
[frames] | no frames]

Module pq

Common functionality for Debian and RPM patchqueue management

Functions [hide private]
 
is_pq_branch(branch)
is branch a patch-queue branch?
 
pq_branch_name(branch)
get the patch queue branch corresponding to branch
 
pq_branch_base(pq_branch)
get the branch corresponding to the given patch queue branch
 
write_patch(patch, patch_dir, options)
Write the patch exported by 'git-format-patch' to it's final location (as specified in the commit)
 
get_maintainer_from_control()
Get the maintainer from the control file
 
switch_to_pq_branch(repo, branch)
Switch to patch-queue branch if not already there, create it if it doesn't exist yet
 
apply_single_patch(repo, branch, patch, topic=None)
 
apply_and_commit_patch(repo, patch, topic=None)
apply a single patch 'patch', add topic 'topic' and commit it
 
drop_pq(repo, branch)
Variables [hide private]
  PQ_BRANCH_PREFIX = 'patch-queue/'
  __package__ = 'gbp.scripts.common'
Function Details [hide private]

is_pq_branch(branch)

 

is branch a patch-queue branch?

>>> is_pq_branch("foo")
False
>>> is_pq_branch("patch-queue/foo")
True

pq_branch_name(branch)

 

get the patch queue branch corresponding to branch

>>> pq_branch_name("patch-queue/master")
>>> pq_branch_name("foo")
'patch-queue/foo'

pq_branch_base(pq_branch)

 

get the branch corresponding to the given patch queue branch

>>> pq_branch_base("patch-queue/master")
'master'
>>> pq_branch_base("foo")