Show More
@@ -14,7 +14,7 b'' | |||
|
14 | 14 | # compinit |
|
15 | 15 | # |
|
16 | 16 | # Copyright (C) 2005, 2006 Steve Borho <steve@borho.org> |
|
17 |
# Copyright (C) 2006 |
|
|
17 | # Copyright (C) 2006-9 Brendan Cully <brendan@kublai.com> | |
|
18 | 18 | # |
|
19 | 19 | # Permission is hereby granted, without written agreement and without |
|
20 | 20 | # licence or royalty fees, to use, copy, modify, and distribute this |
@@ -754,6 +754,18 b' typeset -A _hg_cmd_globals' | |||
|
754 | 754 | (( $#patches )) && _describe -t hg-unapplied-patches 'unapplied patches' patches |
|
755 | 755 | } |
|
756 | 756 | |
|
757 | # unapplied, including guarded patches | |
|
758 | _hg_qdeletable() { | |
|
759 | typeset -a unapplied | |
|
760 | unapplied=(${(f)"$(_hg_cmd qseries 2>/dev/null)"}) | |
|
761 | for p in $(_hg_cmd qapplied 2>/dev/null) | |
|
762 | do | |
|
763 | unapplied=(${unapplied:#$p}) | |
|
764 | done | |
|
765 | ||
|
766 | (( $#unapplied )) && _describe -t hg-allunapplied-patches 'all unapplied patches' unapplied | |
|
767 | } | |
|
768 | ||
|
757 | 769 | _hg_qguards() { |
|
758 | 770 | typeset -a guards |
|
759 | 771 | local guard |
@@ -776,7 +788,7 b' typeset -A _hg_cmd_globals' | |||
|
776 | 788 | _arguments -s -w : $_hg_global_opts \ |
|
777 | 789 | '(--keep -k)'{-k,--keep}'[keep patch file]' \ |
|
778 | 790 | '*'{-r+,--rev}'[stop managing a revision]:applied patch:_hg_revrange' \ |
|
779 |
'*:unapplied patch:_hg_q |
|
|
791 | '*:unapplied patch:_hg_qdeletable' | |
|
780 | 792 | } |
|
781 | 793 | |
|
782 | 794 | _hg_cmd_qdiff() { |
General Comments 0
You need to be logged in to leave comments.
Login now