--- Desktop/contrib-monotone.bash_completion 2007-02-21 22:35:10.000000000 +0000 +++ contrib-monotone.bash_completion 2007-02-21 22:40:44.000000000 +0000 @@ -4,6 +4,7 @@ # bash completion for monotone 0.25 # Author: Olivier Andrieu # Contributions by Matthew A. Nicholson +# and Matthew Sackman # source this file from your .bashrc # If you use the bash completion package , @@ -88,6 +89,10 @@ cur="${cur#*=}" COMPREPLY=( $(compgen -W 'count dot none' -- $cur ) ) ;; + --revision=h:* ) + cur="${cur#*=h:}" + _monotone_branches + ;; --revision=* ) cur="${cur#*=}" _monotone_complete revision @@ -146,7 +151,15 @@ COMPREPLY=( $(compgen -W 'count dot none' -- $cur ) ) ;; --revision | -r ) - _monotone_complete revision + case $cur in + h:* ) + cur="${cur#*h:}" + _monotone_branches + ;; + * ) + _monotone_complete revision + ;; + esac ;; db ) COMPREPLY=( $(compgen -W 'init info version dump load migrate execute