Module gbp_pq
[hide private]
[frames] | no frames]

Module gbp_pq

manage patches in a patch queue

Functions [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_base(pq_branch)
get the branch corresponding to the given patch queue branch >>> pq_branch_base("patch-queue/master") 'master' >>> pq_branch_base("foo")
 
write_patch(patch, options)
Write the patch exported by 'git-format-patch' to it's final location (as specified in the commit)
 
export_patches(repo, branch, options)
Export patches from the pq branch into a patch series
 
get_maintainer_from_control()
Get the maintainer from the control file
tuple
safe_patches(series)
Safe the current patches in a temporary directory below .git/
 
import_quilt_patches(repo, branch, series, tries)
apply a series of quilt patches in the series file 'series' to branch the patch-queue branch for 'branch'
 
get_mailinfo(patch)
Read patch information into a structured form
 
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)
 
rebase_pq(repo, branch)
 
main(argv)
Variables [hide private]
  PQ_BRANCH_PREFIX = 'patch-queue/'
  PATCH_DIR = 'debian/patches/'
  SERIES_FILE = 'debian/patches/series'
  __package__ = None
hash(x)
Function Details [hide private]

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'

safe_patches(series)

 

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

Parameters:
  • series - path to series file
Returns: tuple
tmpdir and path to safed series file

import_quilt_patches(repo, branch, series, tries)

 

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

Parameters:
  • repo - git repository to work on
  • branch - branch to base pqtch queue on @param series; series file to read patches from
  • tries - try that many times to apply the patches going back one commit in the branches history after each failure.