equal
deleted
inserted
replaced
86 local IFS=$'\n' |
86 local IFS=$'\n' |
87 compopt -o filenames 2>/dev/null |
87 compopt -o filenames 2>/dev/null |
88 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) |
88 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) |
89 } |
89 } |
90 |
90 |
91 _hg_tags() |
|
92 { |
|
93 local tags="$(_hg_cmd tags -q)" |
|
94 local IFS=$'\n' |
|
95 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$tags' -- "$cur")) |
|
96 } |
|
97 |
|
98 _hg_branches() |
|
99 { |
|
100 local branches="$(_hg_cmd branches -q)" |
|
101 local IFS=$'\n' |
|
102 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$branches' -- "$cur")) |
|
103 } |
|
104 |
|
105 _hg_bookmarks() |
91 _hg_bookmarks() |
106 { |
92 { |
107 local bookmarks="$(_hg_cmd bookmarks -q)" |
93 local bookmarks="$(_hg_cmd bookmarks -q)" |
108 local IFS=$'\n' |
94 local IFS=$'\n' |
109 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$bookmarks' -- "$cur")) |
95 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$bookmarks' -- "$cur")) |
110 } |
96 } |
111 |
97 |
112 _hg_labels() |
98 _hg_labels() |
113 { |
99 { |
114 _hg_tags |
100 local labels="$(_hg_cmd debuglabelcomplete "$cur")" |
115 _hg_branches |
101 local IFS=$'\n' |
116 _hg_bookmarks |
102 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$labels' -- "$cur")) |
117 } |
103 } |
118 |
104 |
119 # this is "kind of" ugly... |
105 # this is "kind of" ugly... |
120 _hg_count_non_option() |
106 _hg_count_non_option() |
121 { |
107 { |