Mercurial > hg
comparison contrib/bash_completion @ 20127:6b771bcd1a62
bash_completion: remove restriction on bookmark completion
Previously, we only completed a bookmark when deleting or renaming a
bookmark. Since we can now move a bookmark forward, we drop this restriction.
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Wed, 20 Nov 2013 19:13:24 -0500 |
parents | 25cb1d96c307 |
children | 56108ee1edb6 |
comparison
equal
deleted
inserted
replaced
20126:25cb1d96c307 | 20127:6b771bcd1a62 |
---|---|
316 # Completion for commands provided by extensions | 316 # Completion for commands provided by extensions |
317 | 317 |
318 # bookmarks | 318 # bookmarks |
319 _hg_cmd_bookmarks() | 319 _hg_cmd_bookmarks() |
320 { | 320 { |
321 if [[ "$prev" = @(-d|--delete|-m|--rename) ]]; then | 321 _hg_bookmarks |
322 _hg_bookmarks | 322 return |
323 return | |
324 fi | |
325 } | 323 } |
326 | 324 |
327 # mq | 325 # mq |
328 _hg_ext_mq_patchlist() | 326 _hg_ext_mq_patchlist() |
329 { | 327 { |