summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Druart <jonathan.druart@gmail.com>2021-03-11 11:31:49 +0100
committerJonathan Druart <jonathan.druart@gmail.com>2021-03-11 11:33:12 +0100
commitdf6e8f4d6c9641a952c5d878fb2fb7bb3472174c (patch)
tree97c8870559983208cf6059f27e76e3bc4e010e67
parent13b9752115a0bcc9b329fcd1f0383342de3312bf (diff)
downloadgit-bz-df6e8f4d6c9641a952c5d878fb2fb7bb3472174c.tar.gz
Issue #7 - Apply patches from 'Failed QA' dependencies
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
-rwxr-xr-xgit-bz3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-bz b/git-bz
index fd95b36..2b57dba 100755
--- a/git-bz
+++ b/git-bz
@@ -1758,8 +1758,9 @@ def do_apply(*args):
s = dep_bug.bug_status
if s == "Needs Signoff" \
or s == 'Signed Off' \
+ or s == 'Failed QA' \
or s == 'Passed QA':
- print "\nBug %s Depends on bug %s" % ( bug.id, dep_bug.id)
+ print "\nBug %s Depends on bug %s (%s)" % ( bug.id, dep_bug.id, s)
opt = prompt_multi("Follow? [(y)es, (n)o]", ["y", "n"])
if opt == "n":
continue