Mercurial > hg-stable
changeset 3993:04d919cdf263
expanded bash_completion for transplant extension
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 26 Dec 2006 20:08:09 +0100 |
parents | d86ab4ba5ae6 |
children | 1cc60eebc71f |
files | contrib/bash_completion |
diffstat | 1 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/bash_completion Tue Dec 26 19:56:42 2006 +0100 +++ b/contrib/bash_completion Tue Dec 26 20:08:09 2006 +0100 @@ -478,3 +478,25 @@ { _hg_tags } + + +# transplant +_hg_cmd_transplant() +{ + case "$prev" in + -s|--source) + _hg_paths + _hg_repos + return + ;; + --filter) + # standard filename completion + return + ;; + esac + + # all other transplant options values and command parameters are revisions + _hg_tags + return +} +