##// END OF EJS Templates
completion: selectively use debugpathcomplete in bash_completion...
Bryan O'Sullivan -
r18793:a821ec83 default
parent child Browse files
Show More
@@ -80,6 +80,14 b' shopt -s extglob'
80 80 done
81 81 }
82 82
83 _hg_debugpathcomplete()
84 {
85 local files="$(_hg_cmd debugpathcomplete $1 "$cur")"
86 local IFS=$'\n'
87 compopt -o filenames 2>/dev/null
88 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
89 }
90
83 91 _hg_status()
84 92 {
85 93 local files="$(_hg_cmd status -n$1 "glob:$cur**")"
@@ -241,16 +249,16 b' shopt -s extglob'
241 249 _hg_status "mar"
242 250 ;;
243 251 remove)
244 _hg_status "mcd"
252 _hg_debugpathcomplete -n
245 253 ;;
246 254 forget)
247 _hg_status "a"
255 _hg_debugpathcomplete -fa
248 256 ;;
249 257 diff)
250 258 _hg_status "mar"
251 259 ;;
252 260 revert)
253 _hg_status "mard"
261 _hg_debugpathcomplete
254 262 ;;
255 263 clone)
256 264 local count=$(_hg_count_non_option)
General Comments 0
You need to be logged in to leave comments. Login now