##// 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 90 return
91 91 fi
92 92
93 # canonicalize command name
94 cmd=$(hg -q help "$cmd" | sed -e 's/^hg //; s/ .*//; 1q')
95
93 96 if [ "$cmd" != status ] && [ "$prev" = -r ] || [ "$prev" = --rev ]; then
94 97 _hg_tags
95 98 return
@@ -99,10 +102,10 b''
99 102 help)
100 103 _hg_commands
101 104 ;;
102 export|manifest|update|checkout|up|co)
105 export|manifest|update)
103 106 _hg_tags
104 107 ;;
105 pull|push|outgoing|incoming|out|in)
108 pull|push|outgoing|incoming)
106 109 _hg_paths
107 110 COMPREPLY=(${COMPREPLY[@]:-} $( compgen -d -- "$cur" ))
108 111 ;;
@@ -112,7 +115,7 b''
112 115 add)
113 116 _hg_status "u"
114 117 ;;
115 commit|ci)
118 commit)
116 119 _hg_status "mra"
117 120 ;;
118 121 remove)
General Comments 0
You need to be logged in to leave comments. Login now