##// END OF EJS Templates
bash_completion: better handling of aliases...
Alexis S. L. Carvalho -
r1150:4ee09418 default
parent child Browse files
Show More
@@ -90,6 +90,9 b''
90 return
90 return
91 fi
91 fi
92
92
93 # canonicalize command name
94 cmd=$(hg -q help "$cmd" | sed -e 's/^hg //; s/ .*//; 1q')
95
93 if [ "$cmd" != status ] && [ "$prev" = -r ] || [ "$prev" = --rev ]; then
96 if [ "$cmd" != status ] && [ "$prev" = -r ] || [ "$prev" = --rev ]; then
94 _hg_tags
97 _hg_tags
95 return
98 return
@@ -99,10 +102,10 b''
99 help)
102 help)
100 _hg_commands
103 _hg_commands
101 ;;
104 ;;
102 export|manifest|update|checkout|up|co)
105 export|manifest|update)
103 _hg_tags
106 _hg_tags
104 ;;
107 ;;
105 pull|push|outgoing|incoming|out|in)
108 pull|push|outgoing|incoming)
106 _hg_paths
109 _hg_paths
107 COMPREPLY=(${COMPREPLY[@]:-} $( compgen -d -- "$cur" ))
110 COMPREPLY=(${COMPREPLY[@]:-} $( compgen -d -- "$cur" ))
108 ;;
111 ;;
@@ -112,7 +115,7 b''
112 add)
115 add)
113 _hg_status "u"
116 _hg_status "u"
114 ;;
117 ;;
115 commit|ci)
118 commit)
116 _hg_status "mra"
119 _hg_status "mra"
117 ;;
120 ;;
118 remove)
121 remove)
General Comments 0
You need to be logged in to leave comments. Login now