Update: For current documentation, see: http://git.fishsoup.net/man/git-bz.html
Now that gnome-shell development is in full swing, I’ve been spending a lot of time creating patches with git and git-svn, and then pasting the git-format-patch results into Bugzilla. That seemed like a highly automatable task. git-send-bugzilla wasn’t really what I was looking for. Hence, git-bz:
# File the last commit as a new bug on the default tracker git bz file my-product/some-component HEAD^ # Attach a series of patches to an existing bug git bz attach bugzilla.gnome.org:1234 b50ea9bd^ # Prompt if you want to apply each patch attachment from a bug git bz apply bgo:1234
Just the script: http://git.fishsoup.net/cgit/git-bz/plain/git-bz
GIt repository: git clone git://git.fishsoup.net/git-bz
I haven’t tested with anything but bugzilla.gnome.org yet; expect some things to need fixing.
11 Comments
post it to the git mailing list, there are certainly people that are interested!
Cool stuff! Don’t know of others but something really useful for me at least.
git-bugzilla has been around for a while, and used by a few people at gnome, including behdad, chpe and myself.
http://code.istique.net/?p=git-bugzilla.git;a=summary
I’m trying to port this from httplib to urllib2.
http://github.com/fsteinel/git-bz/tree/urllib2
Neat. Is there an equivalent tool for patch-bombing google code?
Wow. I didn’t even have to provide Bugzilla credentials. It’s amazing what you could do just with cookies.
I got the following error:
Error getting login cookie from browser:
/home/sebn/.gnome2/epiphany/mozilla/epiphany/cookies.sqlite doesn’t exist
Solution:
$ cd ~/.gnome2/epiphany/
$ mkdir mozilla
$ cd mozilla/
$ ln -s .. epiphany
Now it works 🙂
This problem is now fixed – see https://bugzilla.gnome.org/show_bug.cgi?id=609668
Great tool. Is there any possibility to write a message when attaching the patch?
See the ‘-e’ option to ‘git bz attach’ (http://git.fishsoup.net/man/git-bz.html#_attach)
I’m closing this bug for further comments. For submitting patches, reporting problems, or making suggestions for improvements, see:
https://bugzilla.gnome.org/enter_bug.cgi?product=git-bz
(search for duplicates first.) For anything else related to git-bz, you can mail me personally.