Age | Commit message (Collapse) | Author |
|
The version of Colin's Chromium patch I applied was outdated and had an obvious
left-over in the Xulrunner codepaths that made things no longer with with Firefox
and Epiphany. Fix.
|
|
Chromium uses sqlite for cookies as well and with a very similar
(but not identical) schema compared to xulrunner. Abstract things
a bit so that chromium can use most of the same code.
|
|
All of the bugtrackers we care about (gnome,mozilla,freedesktop,openedhand),
include attachment data in the ctype=xml output, so:
- Use excludefield=attachmentdata when we don't want attachment data
- Use the data downloaded with the XML data when we do want attachment
data (git bz apply) rather than downloading it separately.
This fixes problems with bugzilla servers that use a redirect for attachments.
|
|
Bugzilla 3.4 (like the new GNOME bugzilla)
- Requires a status for attached patches
- Uses a different title for succesful attachments
|
|
Passing -M to git-format-patch when creating patches means that renames
will be shown as renames, increasing reviewability of the resulting
patches.
|
|
Deviate from git-format-patch in the handling of a single revision:
file a bug with a single patch is definitely more common than filing
a bug with a range of patches and this results in less mystical
invocations. Hopefully git-format-patch will eventually catch up.
Remove the support for --num=<N> and -N since it's minimally useful
now; it's not impossible to want to do 'git bz file old_commit^.. -2'
but I don't want to clutter the interface.
|
|
Picking up product and component from the tracker specific config
was never useful and annoying; move the options
bz.default-product and bz.default-component.
Display useful help when product/component aren't specified.
(No concession to backwards-compat here: people can easily
reconfigure, especially with the help.)
|
|
Firefox-3.5 seems to always hold cookies.sqlite locked while the
browser is open. Work around this by, when we hit a lock error,
making a copy and reading from that. Not 100% reliable, but should
work much of the time.
|
|
Make both call a common get_cookies_from_sqlite() to avoid code
duplication. Return errors by raising a CookieError so that we can
centralize information about git-config bz.browser into one place.
|
|
Add bugzilla support for epiphany. Enable via:
git config --global bz.browser epiphany
Switch back via:
git config --global bz.browser firefox3
|
|
Check for:
- Commits already pushed to a remote branch
- Commits that aren't on the current branch
- Merge commits
|
|
|
|
Allow omitting bug reference when obvious
Default to -e/--edit when only one commit
|
|
Only use the commit body as the bug description when filing a new bug
if no other description is specified; if another description is
entered, use the commit body as the description for the attachment.
|
|
If -e/--edit is specified and there is only one patch, go
straight to the edit, the user can abort from there if necessary.
|
|
Add a -e/--edit option to 'git-bz-attach' to bring up the
description/comment in an editor. Existing patches are shown
as commented out Obsoletes: lines that can be uncommented to
to obsolete the old patches.
|
|
Fix a problem where https was always used when a bug reference
was specified as an URL: fhttp(s?) gives a group(1) of "" not
None when the s is missing
|
|
Switch the example alias from the 'bgo' to the less obscure 'gnome'.
(Suggestion from Ray Strode.) Other minor tweaks to the docs.
|
|
Allowing specifying bz-tracker.<tracker>.default-product and
bz-tracker.<tracker>.default-component. This is useful when done
in the per-repository config.
Add a "Per-repository configuration" section in the docs with examples.
|
|
Allow specifying -b/--bugzilla for all subcommands and not just
for for 'file'
|
|
|
|
While spaces in products and components may not be common,
bugzilla.openedhand.com has, for example, "Metacity (Clutter port)"
as a product. So allow that.
|
|
Tweak style from last patch to match personal preference.
|
|
Select the first profile with a Path entry, and in case of multiple
profiles use the one with Default=1
Fixes profile lookup with profiles.ini that looks like:
[General]
StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=t0ps3cr3t.default
|
|
|
|
rev_list_commits() wasn't working properly when the returned list of
commits was empty because "".split("\n") is [""] not []. Special
case that. (Reported by Colin Walters.)
|
|
Replace usage of random low-level parts of GitPython with a simple
convenience functionality similar to that offered by git.cmd. For
example:
git.commit(file="-", amend=True, _input=input)
Include special options _input/_quiet/_interactive to allow removing
several cases where subprocess.Popen() was used directly and improve
output on git command failure.
Also, use commit.subject rather than commit.message to be consistent
with standard Git terminology.
|
|
Strip out the URL we add with -u when using the body of the commit
as the comment for an attachmnet; it's completely redundant to have
an URL pointing back to the bug page itself.
|
|
If the response to attaching a patch doesn't have "Changes Submitted"
as the, assume the attachment failed and dump out an error message
and the response body.
|
|
|
|
The default default severity should be 'normal', not empty.
|
|
* Add item about dropping the usage of GitPython
* Add a better suggestion for how to do Obsoletes
|
|
|
|
git bz add-url: new subcommand to rewrite old commit messages to include
a bug URL.
git bz attach/file: -u/--add-url option rewrites commit messages as
with 'add-url' before attaching patches to bugzilla.
git bz apply: -u/--add-url option rewrites commit messages after
applying patches to the current tree.
|
|
|
|
Testing revealed a couple of invalid variable references from cleanups
just before the initial import. Fix.
|
|
git-file examples were missing the mandatory product and component.
|
|
|