From: Markus Lehtonen Date: Thu, 12 Jan 2012 13:35:37 +0000 (+0200) Subject: Add 'packaging-branch' cmdline option X-Git-Tag: release/20120807~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad1538dcbc09030779db9f34da336eb5fce62350;p=tools%2Fgit-buildpackage.git Add 'packaging-branch' cmdline option This is the counterpart of 'debian-branch' (basically identical to that) to not confuse rpm maintainers. Also, adds this option to gbp-clone and gbp-pull commands (as an alternative to the 'debian-branch option), which are usable for RPM in their current form. --- diff --git a/docs/manpages/gbp-clone.sgml b/docs/manpages/gbp-clone.sgml index 9c32d0c8..15f7d8f0 100644 --- a/docs/manpages/gbp-clone.sgml +++ b/docs/manpages/gbp-clone.sgml @@ -24,7 +24,10 @@ - branch_name + + branch_name + branch_name + branch_name depth remote_uri @@ -59,6 +62,14 @@ developed on, default is master. + + =branch_name + + + The branch the packaging is being maintained on. + Alternative to the --debian-branch option. + + =branch_name diff --git a/docs/manpages/gbp-pull.sgml b/docs/manpages/gbp-pull.sgml index 488042da..f796506c 100644 --- a/docs/manpages/gbp-pull.sgml +++ b/docs/manpages/gbp-pull.sgml @@ -25,7 +25,10 @@ [merge|clean] - branch_name + + branch_name + branch_name + branch_name depth @@ -69,6 +72,14 @@ developed on, default is master. + + =branch_name + + + The branch the packaging is being maintained on. + Alternative to the --debian-branch option. + + =branch_name diff --git a/gbp/config.py b/gbp/config.py index 99f07f4a..81e667fa 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -69,6 +69,7 @@ class GbpOptionParser(OptionParser): @type def_config_files: list """ defaults = { 'debian-branch' : 'master', + 'packaging-branch' : 'master', 'upstream-branch' : 'upstream', 'upstream-tree' : 'TAG', 'pristine-tar' : 'False', @@ -132,6 +133,8 @@ class GbpOptionParser(OptionParser): help = { 'debian-branch': "branch the Debian package is being developed on, default is '%(debian-branch)s'", + 'packaging-branch': + "branch the packaging is being maintained on, rpm counterpart of the 'debian-branch' option, default is '%(packaging-branch)s'", 'upstream-branch': "upstream branch, default is '%(upstream-branch)s'", 'upstream-tree': diff --git a/gbp/scripts/clone.py b/gbp/scripts/clone.py index 4d992df9..4f9277b4 100755 --- a/gbp/scripts/clone.py +++ b/gbp/scripts/clone.py @@ -39,6 +39,7 @@ def parse_args (argv): 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="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)") diff --git a/gbp/scripts/pull.py b/gbp/scripts/pull.py index e8f78197..d541c80d 100755 --- a/gbp/scripts/pull.py +++ b/gbp/scripts/pull.py @@ -103,6 +103,7 @@ def main(argv): help="redo the patch queue branch after a pull. Warning: this drops the old patch-queue branch") branch_group.add_config_file_option(option_name="upstream-branch", dest="upstream_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 deepening shallow clones)")