module documentation

Import a new upstream version into a Git repository

Function build_parser Undocumented
Function debian_branch_merge Undocumented
Function debian_branch_merge_by_auto Undocumented
Function debian_branch_merge_by_merge Undocumented
Function debian_branch_merge_by_replace Undocumented
Function detect_name_and_version Undocumented
Function find_upstream Find the main tarball to import - either via uscan or via command line argument
Function is_30_quilt Undocumented
Function main Undocumented
Function maybe_link Create a symlink named link pointing to orig if that is not the case already.
Function parse_args Parse the command line arguments
Function postimport_hook Undocumented
Function postunpack_hook Undocumented
Function prepare_pristine_tar Prepare the upstream source for pristine tar import.
Function rollback Undocumented
Function set_bare_repo_options Modify options for import into a bare repository
Function unpack_tarballs Undocumented
Function upstream_import_commit_msg Undocumented
def build_parser(name):

Undocumented

def debian_branch_merge(repo, tag, version, options):

Undocumented

def debian_branch_merge_by_auto(repo, tag, version, options):

Undocumented

def debian_branch_merge_by_merge(repo, tag, version, options):

Undocumented

def debian_branch_merge_by_replace(repo, tag, version, options):

Undocumented

def detect_name_and_version(repo, source, options):

Undocumented

def find_upstream(use_uscan, args, version=None):

Find the main tarball to import - either via uscan or via command line argument

Returns
stringupstream source filename or None if nothing to import
Raises
GbpError

raised on all detected errors

>>> find_upstream(False, ['too', 'many'])
Traceback (most recent call last):
...
gbp.errors.GbpError: More than one archive specified. Try --help.
>>> find_upstream(False, [])
Traceback (most recent call last):
...
gbp.errors.GbpError: No archive to import specified. Try --help.
>>> find_upstream(True, ['tarball'])
Traceback (most recent call last):
...
gbp.errors.GbpError: you can't pass both --uscan and a filename.
>>> find_upstream(False, ['tarball']).path
'tarball'
def is_30_quilt(repo, options):

Undocumented

def main(argv):

Undocumented

def maybe_link(orig, link):

Create a symlink named link pointing to orig if that is not the case already.

def parse_args(argv):

Parse the command line arguments

Returns
options and arguments
def postimport_hook(repo, tag, version, options):

Undocumented

def postunpack_hook(repo, tmp_dir, sources, options):

Undocumented

def prepare_pristine_tar(archive, pkg, version):

Prepare the upstream source for pristine tar import.

This checks if the upstream source is actually a tarball and creates a symlink from archive to <pkg>_<version>.orig.tar.<ext> so pristine-tar will see the correct basename. Same goes for an optional signature.

Parameters
archive:strthe upstream source's name
pkg:strthe source package's name
version:strthe upstream version number
Returns
strUndocumented
def rollback(repo, options):

Undocumented

def set_bare_repo_options(options):

Modify options for import into a bare repository

def unpack_tarballs(repo, name, sources, version, options):

Undocumented

def upstream_import_commit_msg(options, version):

Undocumented