diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2009-09-04 20:39:10 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2009-09-04 20:39:10 -0400 |
commit | b3757215bac5deabaf09616ce1086455f94116f2 (patch) | |
tree | 89233f9705013018900a8d3dfd396ba0508f423e | |
parent | 1c975ace55ac8fc5314787bc6d9031736bf28b88 (diff) |
Ignore committed/rejected patches
If patches have a status and it's 'committed' or 'rejected', then
skip them for git-bz apply and don't prompt.
-rwxr-xr-x | git-bz | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1436,6 +1436,10 @@ def do_apply(bug_reference): print for patch in bug.patches: + if patch.status == 'committed' or patch.status == 'rejected': + print "Skipping, %s: %s" % (patch.status, patch.description) + continue + print patch.description if not prompt("Apply?"): continue |