summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Prevent dies when empty line enteredgit-bz-python3_adaptationAndrii Nugged2023-06-131-3/+4
|
* Syntax errors found by pylanceAndrii Nugged2023-06-131-2/+2
|
* Replace stdout with sterr as suggested by JonathanMartin Renvoize2022-11-211-1/+1
| | | | This was a clear trivial error.
* Added conditions for working with multiline commentsSlava Shishkin2022-04-261-8/+9
|
* Partial conversions for Bytes and Strings to needed formatSlava Shishkin2022-04-211-28/+33
| | | | - update for bz commands [apply] and [attach]
* Optimize importsSlava Shishkin2022-04-161-7/+5
|
* Partial conversion bytes to stringsSlava Shishkin2022-04-161-7/+7
|
* upgrade prompt_multiSlava Shishkin2022-04-161-4/+1
|
* update get_git_configSlava Shishkin2022-04-161-2/+2
|
* update init_git_configSlava Shishkin2022-04-161-2/+2
|
* Apply automated Python 2 to 3 code translationSlava Shishkin2022-04-151-207/+322
|
* Issue #6 - list of bugs applied must be globalJonathan Druart2021-05-121-4/+6
|
* Issue #4 - Exit with error on apply error, but catch in cascade apply.Martin Renvoize2021-05-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | If a patch fails to apply we should exit with a proper exit status so that ansible can catch the issue in non-interactive operation for the sandboxes. Test plan You can use echo $? after executing any command in the shell to see the last commands exit code.. 0 for success, 1 for failure. To test this patch try doing a git bz apply using a bug you know will fail to apply, Call the echo statement above and note the exit code is 0.. after applying the patch do the same bz apply and echo and not the exit code now properly reflects the failure state with an exit code of 1. Bonus points is to test that the cascade apply still works as expected for both cases of a fully successful apply and for one where one of the dependancies fails to apply. More bonus points, check that passing multiple bug ids also still works
* Issue #7 - Apply patches from 'BLOCKED' dependenciesJonathan Druart2021-05-121-1/+2
|
* Issue #7 - Apply patches from 'Failed QA' dependenciesJonathan Druart2021-03-111-1/+2
| | | | | | | | If one tries to apply patches from bug 4321 that is depending on bug 1234 that is "Failed QA", the patches from 1234 will be skipped silently. This patch suggests to apply them and display the status in the "depends on" string displayed to the user
* Issue #6 - Restore continue, skip and abortJonathan Druart2020-08-141-0/+3
|
* Issue #6 - Ability to pass several bug numbers to applyJonathan Druart2020-08-141-7/+23
| | | | | | | | | | | | | | | git bz apply 1 2 3 4 will now apply the patches from bug reports 1, 2, 3 and 4 There is a check to prevent patches from the same bug reports to be applied. Say you have 3 depends on 1 if you apply 1 2 3 you will have: patches from 3 patches from 1 (if you follow the apply on cascade) patches from 2 # patches from 1 will be skipped if applied on cascade previously
* Issue #5 - Adjust shebang to use python2Jonathan Druart2020-08-141-1/+1
| | | | | | | | | | | | Wrong shebang under (at least) D11 % git-bz bash: /usr/bin/git-bz: /usr/bin/python: bad interpreter: No such file or directory % ls /usr/bin/python* /usr/bin/python2 /usr/bin/python2.7 /usr/bin/python3 /usr/bin/python3.8 git-bz is using /usr/bin/python We must specify /usr/bin/python2
* Allow to use git-credential to retrieve Bugzilla username and passwordJulian Maurice2018-01-181-11/+52
| | | | | | | | | | | | | | | | | | | | | This removes the need of storing non-encrypted password in git config Configuration example: [credential] helper = cache --timeout 3600 [credential "https://bugs.koha-community.org"] username = your.email@example.com [bz-tracker "bugs.koha-community.org"] path = /bugzilla3 https = true use-git-credential = true Now the first time you will use git-bz, it will ask for a password and store it in memory (only if the login was successful). If you use it again, it will not ask again and it will use the in-memory cache instead You can use other credential helper as you wish (there is a helper for gnome-keyring for instance)
* Only edit the first commitJonathan Druart2017-03-171-1/+3
| | | | | Usually when I use `git bz attach -e` I only want to edit the first commit to change the status and obsolete the patches.
* Apply dependencies on cascadeJonathan Druart2016-09-081-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a bug report depends on others in Needs Signoff, Signed Off or Passed QA status, you will now be able to apply the patches from the dependent bugs. Note that if something is going wrong, the process won't continue as you could expect. git bz apply --continue will continue the patch set in conflict and not the followings. For instance Bug 42 depends on bug 421 and 422 which depends on bug 4221 % git bz apply 42 Bug 42 Depends on bug 421 Follow? [(y)es, (n)o] y Bug 421 - XXX Apply? [(y)es, (n)o, (i)nteractive] Applying: Bug 421: commit msg 421 Bug 42 Depends on bug 422 Follow? [(y)es, (n)o] y Bug 422 Depends on bug 4221 Follow? [(y)es, (n)o] y Bug 4221 - XXX Apply? [(y)es, (n)o, (i)nteractive] Applying: Bug 4221: commit msg 4221 Bug 422 - XXX Apply? [(y)es, (n)o, (i)nteractive] Applying: Bug 422: commit msg 422 Bug 42 - XXX Apply? [(y)es, (n)o, (i)nteractive] Applying: Bug 42: commit msg 42
* Merge remote-tracking branch 'kc/fishsoup' into kcfishsoupChris Cormack2015-07-131-1/+2
|\
| * Fixing utf-8 encoding issues. Special utf-8 characters can now be used in ↵Justin2015-01-151-1/+2
| | | | | | | | commit messages. Added a definition header for the source code encoding.
* | Fix for git-bz to deal with the fact the output of changing a status has ↵Chris Cormack2015-07-131-2/+1
|/ | | | changed slightly
* teach git-bz how to deal with BZ's CSRF protectionGalen Charlton2014-04-201-1/+22
| | | | | | | This is pretty hackish; it may be time to see if we can do what we need using BZ's official web services. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
* Teach git-bz to update dependsonHugh Davenport2013-07-101-4/+37
| | | | | | | | | Uses a commit tag Depends: which needs to map the regexp (bug)?\s*(\d+) case insensitive. Allows multiple depends lines, and shows the current setting of the depends. Signed-off-by: Hugh Davenport <hugh@davenport.net.nz> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
* Merge branch 'master' of git://git.fishsoup.net/git-bz into fishsoupJared Camins-Esakov2013-07-101-1/+1
|\
| * Fix typo: Uncommment => uncommentOwen W. Taylor2013-02-141-1/+1
| | | | | | | | Pointed out by Dan Winship
* | Don't choke on UTF-8 chars in bugzilla summaries when writing commit templates.Trevor Saunders2013-06-241-1/+1
| | | | | | | | | | Conflicts: git-bz
* | Get a new token for each attachment.Bobby Holley2013-06-241-14/+19
| |
* | Merge remote-tracking branch 'kc/fishsoup' into HEADChris Cormack2013-06-241-5/+46
|\ \
| * | Make changing status and patch complexity at the same time workJared Camins-Esakov2013-01-171-5/+9
| | |
| * | Teach git-bz to update patch-complexityHugh Davenport2013-01-171-3/+40
| | | | | | | | | | | | | | | | | | | | | Note that this commit hardcodes the complexities relevant for the Koha project. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
* | | Use the CSRF token from the attachment page, rather than the bug page, when ↵Bobby Holley2013-06-241-0/+14
|/ / | | | | | | | | | | | | | | attaching files. This fixes breakage caused by a recent BMO change. A similar change was made to bzapi: http://hg.mozilla.org/webtools/bzapi/rev/5ca3562f2e6c
* | Don't add user to CC list so that updating status will workJared Camins-Esakov2012-11-101-1/+1
| |
* | Add a missing declarationJared Camins-Esakov2012-11-101-0/+1
| |
* | Add README to fishsoupJared Camins-Esakov2012-11-061-0/+15
| |
* | Fix merge errorJared Camins-Esakov2012-11-061-1/+1
| |
* | Teach git-bz to optionally sign off when applying patchesJared Camins-Esakov2012-11-061-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | Adds a -s/--signoff option for the apply action. When set, git-bz will instruct git-am to sign off on all patches as they are being applied. WARNING: THIS OPTION IS INTENDED FOR USE WHEN PUSHING BRANCHES. DO NOT USE THIS OPTION AS AN ALTERNATIVE TO ACTUALLY TESTING CODE. Conflicts: git-bz
* | add support to email patch to 'koha-patches' mailing-list, using --mail argMason James2012-11-061-1/+25
| | | | | | | | | | | | Conflicts: git-bz
* | Teach git-bz to update bug statusesJared Camins-Esakov2012-11-061-7/+43
| | | | | | | | | | | | | | | | | | Note that this commit hardcodes the statuses relevant for the Koha project. Conflicts: git-bz
* | Add support for bz-user and bz-password and authenticating directly.software.coop worker2012-11-062-13/+50
| | | | | | | | | | | | Conflicts: git-bz
* | Typo fixChris Cormack2012-11-061-1/+1
| |
* | Fixing a little copy and paste error with auth-user and auth-passwordChris Cormack2012-11-061-1/+1
|/
* Add support for epiphany 3.6Bastien Nocera2012-08-071-3/+7
| | | | | | Cookie jar got migrated from ~/.gnome2/epiphany to ~/.config/epiphany https://bugzilla.gnome.org/show_bug.cgi?id=676241
* attach: Obsolete patches with the same subjectJasper St. Pierre2012-03-132-1/+11
| | | | | | | | | For plain 'git bz attach', always obsolete existing patches if they have the same subject as the commit being attached. For 'git bz attach -e', make this the default. https://bugzilla.gnome.org/show_bug.cgi?id=671941
* apply: fix typoOwen W. Taylor2012-03-011-1/+1
| | | | """ not """"
* apply: Fix addition of 'need commit message' stringOwen W. Taylor2012-03-011-1/+2
| | | | | Fix a double addition of the commit message, and add a comment pointing out that the exact string is checked by git.gnome.org.
* apply: ask the user to double-check author and subjectOwen W. Taylor2012-03-011-0/+6
| | | | | | The author and subject might be wrong (especially the subject), when we make up a commit message for a plain patch, so ask the user to double check.
* apply: pass _interactive=True when running 'git commit --amend'Owen W. Taylor2012-03-011-2/+2
| | | | | If the editor uses the terminal, the missing _interactive=True will cause things to hang.