module documentation
        
        Manage Debian patches on a patch queue branch
| Function | build | 
    Undocumented | 
| Function | check | 
    Undocumented | 
| Function | commit | 
    Commit chanages exported from patch queue | 
| Function | compare | 
    Compare new pathes to lists of patches already exported | 
| Function | export | 
    Export patches from the pq branch into a patch series | 
| Function | find | 
    Find commit corresponding to upstream version based on changelog | 
| Function | format | 
    Format the patch differences into a suitable commit message | 
| Function | generate | 
    Generate patch files from git | 
| Function | import | 
    Import quilt patches onto pq branch | 
| Function | import | 
    apply a series of quilt patches in the series file 'series' to branch the patch-queue branch for 'branch' | 
| Function | main | 
    Undocumented | 
| Function | maybe | 
    Import quilt patches onto pq branch if pq branch does not exist yet | 
| Function | parse | 
    Undocumented | 
| Function | parse | 
    Parse 'gbp-pq-topic:' line(s) from commit info | 
| Function | pq | 
    Return True if the patch queue is based on the uptream tag, False if its based on the debian packaging branch | 
| Function | rebase | 
    Undocumented | 
| Function | safe | 
    Safe the current patches in a temporary directory below .git/ | 
| Function | switch | 
    Switch to patch-queue branch if on base branch and vice versa | 
| Function | usage | 
    Undocumented | 
| Constant | PATCH | 
    Undocumented | 
| Constant | SERIES | 
    Undocumented | 
Compare new pathes to lists of patches already exported
>>> compare_series(['# comment', 'a', 'b'], ['b', 'c']) (['c'], ['a']) >>> compare_series([], []) ([], [])
Format the patch differences into a suitable commit message
>>> format_series_diff(['a'], ['b'], None) 'Rediff patches\n\nAdd a: <REASON>\nDrop b: <REASON>\n'
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 patch queue on | 
| 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. | 
| force | import the patch series even if the branch already exists | 
| pq | what to use as the starting point for the pq branch. DEBIAN indicates the current branch, TAG indicates that the corresponding upstream tag should be used. | 
| upstream | upstream tag template to use | 
Return True if the patch queue is based on the uptream tag, False if its based on the debian packaging branch
Safe the current patches in a temporary directory below .git/
| Parameters | |
| series | path to series file | 
| repo | Undocumented | 
| Returns | |
| tuple | tmpdir and path to safed series file |