&man.common.options.synopsis;
<arg><option>--all</option></arg>
<arg><option>--[no-]pristine-tar</option></arg>
- <arg><option>--debian-branch=</option><replaceable>branch_name</replaceable></arg>
+ <group>
+ <arg><option>--debian-branch=</option><replaceable>branch_name</replaceable></arg>
+ <arg><option>--packaging-branch=</option><replaceable>branch_name</replaceable></arg>
+ </group>
<arg><option>--upstream-branch=</option><replaceable>branch_name</replaceable></arg>
<arg><option>--depth=</option><replaceable>depth</replaceable></arg>
<arg><option>--reference=</option><replaceable>repository</replaceable></arg>
developed on, default is <replaceable>master</replaceable>.</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>--packaging-branch</option>=<replaceable>branch_name</replaceable>
+ </term>
+ <listitem>
+ <para>The branch the packaging is being maintained on.
+ Alternative to the <emphasis>--debian-branch</emphasis> option.</para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><option>--upstream-branch</option>=<replaceable>branch_name</replaceable>
</term>
branch_group.add_option("--all", action="store_true", dest="all", default=False,
help="track all branches, not only debian and upstream")
branch_group.add_config_file_option(option_name="upstream-branch", dest="upstream_branch")
- branch_group.add_config_file_option(option_name="debian-branch", dest="debian_branch")
+ branch_group.add_config_file_option(option_name="debian-branch", dest="packaging_branch")
+ branch_group.add_config_file_option(option_name="packaging-branch", dest="packaging_branch")
branch_group.add_boolean_config_file_option(option_name="pristine-tar", dest="pristine_tar")
branch_group.add_option("--depth", action="store", dest="depth", default=0,
help="git history depth (for creating shallow clones)")
local != "HEAD"):
repo.create_branch(local, remote)
else: # only track gbp's default branches
- branches = [options.debian_branch, options.upstream_branch]
+ branches = [options.packaging_branch, options.upstream_branch]
if options.pristine_tar:
branches += [repo.pristine_tar_branch]
gbp.log.debug('Will track branches: %s' % branches)
repo.create_branch(branch, remote)
if repo.has_branch(options.debian_branch, remote=True):
- repo.set_branch(options.debian_branch)
+ repo.set_branch(options.packaging_branch)
repo_setup.set_user_name_and_email(options.repo_user, options.repo_email, repo)
if not options.defuse_gitattributes.is_off():