Control: clone -1 -2
Control: retitle -2 git-buildpackage: Please provide also a "gbp push" 
subcommand

Hi Guido,

Guido Günther wrote:
> On Sun, Dec 29, 2013 at 03:57:21AM +0100, Axel Beckert wrote:
> This makes sense. Just in case you didn't notice already: the values
> printed by
> 
>     gbp <command> --help 
> 
> readily print the parsed values from the configuration

Oh! No, I didn't notice. Thanks for this hint!

The phrase "Default is" suggested to me that this is the built-in
default and not the one after parsing.

But the defaults mentioned by the --help output are indeed dependent
on where I call the command. Impressive.

Which leads to the question what happens with --help if there's
garbage in gbp.conf. Will write a separate bug report for that. ;-)

> they're hardly machine parseable though atm.

Yes. :-)

BTW, I needed it here:

http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/pkg-perl-tools.git;a=blob;f=scripts/push;hb=HEAD

And this is my implementation of a (quite specific and hence partial)
gbp.conf parser in shell code:

http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/pkg-perl-tools.git;a=commitdiff;h=ef25489c25602ee5ac8964758372658c769ae258

After this commit (and one more bugfix commit), "dpt push" is more or
less a counterpart to "gbp pull".

On a second thought: Wouldn't a "gbp push" make sense, too?

There's obviously some need, otherwise the Debian Perl Group wouldn't
have implemented it and I wouldn't have modified it to be also usable
with the Debian Zsh Team's git repositories where the debian-branch is
"debian" instead of "master" and the upstream tags have a different
syntax.

I'm herewith cloning this report accordingly into a second feature
request. I'd say, a "gbp push" command should do the following:

Push the branch configured as debian-branch, the branch configured as
upstream-branch, the pristine-tar branch, and all tags matching
upstream-tag and debian-tag, to the remote origin.

Alternatively it may push them to the remote configured as default
remote for pushing these branches, but that leaves the question to
where push the tags. So maybe gbp.conf could need some further setting
which remote "gbp pull" and "gbp push" use by default.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to