* git-bz: command line integration for bugzilla
@ 2009-08-29 2:24 Owen Taylor
2009-08-29 8:07 ` Jakub Narebski
0 siblings, 1 reply; 3+ messages in thread
From: Owen Taylor @ 2009-08-29 2:24 UTC (permalink / raw)
To: git
Was filling out the Git user's survey today, and noticed that my git-bz
tool wasn't on the long list of "Git interfaces, implementations,
frontends and tools" - but then again, I've never really advertised it
beyond GNOME IRC. So, I was reminded to mention it here...
The Pitch
=========
Do you use git? You wouldn't be reading this list if you didn't. Do you
use Bugzilla? No? You can stop here.
Since you use Git and you use Bugzilla, you want to use git-bz.
Setup:
git config --global bz.default-tracker bugzilla.example.com
# in some module
git config bz.default-product TiddlyWinks
git config bz.default-component AI-Engine
File a new bug with a commit attached as a patch, rewrite the commit
message to include the URL of the newly filed bug:
git bz file -u HEAD
Attach a series of commits to an existing bug, bringing each up in
an editor to allow editing the comment and picking old patches to
obsolete:
git bz attach -e 43215 HEAD~3..
Apply patches already attached to an existing bug to a local branch:
git bz apply http://bugzilla.example.com/show_bug.cgi?34132
Getting It
==========
The script: http://git.fishsoup.net/cgit/git-bz/plain/git-bz
CGIT: http://git.fishsoup.net/cgit/git-bz
clone: git://git.fishsoup.net/git-bz
It's a standalone Python script, no dependencies, so you can just copy it
or symlink it somewhere in your path.
Notes
=====
* Yes, it's in Python.
* It should work with most Bugzilla installations
* There are some nice things that could be added - support for automatically
creating a branch when applying patches from a bug locally, 'git bz close'
to push patches and close the corresponding Bugzilla bugs, and so forth.
It's pretty good as is.
* The utility of attaching patches to Bugzilla is probably greatest
in a shared-central repository workflow. If all contributors already
are publishing all changes to personal public repositories, then attaching
them to Bugzilla in addition may not make sense.
Tracking merge requests would require a quite different form of Bugzilla
integration (probably server side)
* It used to be command-line compatible with git-format-patch for the handling
of 'git bz file <revision>' - but I switched it at some point so you didn't
need to add '-1' to file a single commit. Still undecided if it's better
to be obvious or to be compatible.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-bz: command line integration for bugzilla
2009-08-29 2:24 git-bz: command line integration for bugzilla Owen Taylor
@ 2009-08-29 8:07 ` Jakub Narebski
2009-08-29 10:51 ` Owen Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2009-08-29 8:07 UTC (permalink / raw)
To: Owen Taylor; +Cc: git
Owen Taylor <otaylor@redhat.com> writes:
> Was filling out the Git user's survey today, and noticed that my git-bz
> tool wasn't on the long list of "Git interfaces, implementations,
> frontends and tools"
Well, you can always add it in "Other (please specify)" in survey
> - but then again, I've never really advertised it
> beyond GNOME IRC. So, I was reminded to mention it here...
Could you please add (short) information about this tool to Git Wiki:
http://git.or.cz/gitwiki/InterfacesFrontendsAndTools
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-bz: command line integration for bugzilla
2009-08-29 8:07 ` Jakub Narebski
@ 2009-08-29 10:51 ` Owen Taylor
0 siblings, 0 replies; 3+ messages in thread
From: Owen Taylor @ 2009-08-29 10:51 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
On Sat, 2009-08-29 at 01:07 -0700, Jakub Narebski wrote:
> Owen Taylor <otaylor@redhat.com> writes:
>
> > Was filling out the Git user's survey today, and noticed that my git-bz
> > tool wasn't on the long list of "Git interfaces, implementations,
> > frontends and tools"
>
> Well, you can always add it in "Other (please specify)" in survey
Certainly. It was not meant as a real complaint - git has a large and
varied ecosystem.
> > - but then again, I've never really advertised it
> > beyond GNOME IRC. So, I was reminded to mention it here...
>
> Could you please add (short) information about this tool to Git Wiki:
> http://git.or.cz/gitwiki/InterfacesFrontendsAndTools
One step ahead of you there, added:
http://git.or.cz/gitwiki/InterfacesFrontendsAndTools#git-bz
yesterday.
- Owen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-29 10:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-29 2:24 git-bz: command line integration for bugzilla Owen Taylor
2009-08-29 8:07 ` Jakub Narebski
2009-08-29 10:51 ` Owen Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).