##// END OF EJS Templates
bash_completion: change --rev if-else block into a case...
Sean Farley -
r20133:f6c33fc5 default
parent child Browse files
Show More
@@ -239,12 +239,16 b' shopt -s extglob'
239 return 0
239 return 0
240 fi
240 fi
241
241
242 if [ "$cmd" != status ] && [ "$prev" = -r ] || [ "$prev" == --rev ]; then
242 if [ "$cmd" != status ]; then
243 if [[ $canonical = 1 || status != "$cmd"* ]]; then
243 case "$prev" in
244 _hg_labels
244 -r|--rev)
245 return 0
245 if [[ $canonical = 1 || status != "$cmd"* ]]; then
246 fi
246 _hg_labels
247 return 1
247 return 0
248 fi
249 return 1
250 ;;
251 esac
248 fi
252 fi
249
253
250 local aliascmd=$(_hg_cmd showconfig alias.$cmd | awk '{print $1}')
254 local aliascmd=$(_hg_cmd showconfig alias.$cmd | awk '{print $1}')
General Comments 0
You need to be logged in to leave comments. Login now