Show More
@@ -251,8 +251,13 b' complete -o bashdefault -o default -F _h' | |||||
251 | # mq |
|
251 | # mq | |
252 | _hg_ext_mq_patchlist() |
|
252 | _hg_ext_mq_patchlist() | |
253 | { |
|
253 | { | |
254 | local patches=$("$hg" $1 2>/dev/null) |
|
254 | local patches | |
|
255 | patches=$("$hg" $1 2>/dev/null) | |||
|
256 | if [ $? -eq 0 ] && [ "$patches" ]; then | |||
255 |
|
|
257 | COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$patches' -- "$cur")) | |
|
258 | return 0 | |||
|
259 | fi | |||
|
260 | return 1 | |||
256 | } |
|
261 | } | |
257 |
|
262 | |||
258 | _hg_ext_mq_queues() |
|
263 | _hg_ext_mq_queues() |
General Comments 0
You need to be logged in to leave comments.
Login now