dest="packaging_branch")
branch_group.add_config_file_option(option_name="upstream-branch",
dest="upstream_branch")
+ branch_group.add_option("--upstream-vcs-tag", dest="vcs_tag",
+ help="Upstream VCS tag on top of which to import "
+ "the orig sources")
branch_group.add_boolean_config_file_option(
option_name="create-missing-branches",
dest="create_missing_branches")
raise GbpError
msg = "%s version %s" % (tag_format[1], spec.upstreamversion)
+ if options.vcs_tag:
+ parents = [repo.rev_parse("%s^{}" % options.vcs_tag)]
+ else:
+ parents = None
upstream_commit = repo.commit_dir(upstream.unpacked,
"Imported %s" % msg,
branch,
+ other_parents=parents,
author=author,
committer=committer,
create_missing_branch=options.create_missing_branches)