# # # patch "contrib/monotone.bash_completion" # from [4cf1b15e1a927ed73947f9f95874e36e88fa8551] # to [6350cb8fa0a2eb67ba2200e236d601f92b4a0979] # ============================================================ --- contrib/monotone.bash_completion 4cf1b15e1a927ed73947f9f95874e36e88fa8551 +++ contrib/monotone.bash_completion 6350cb8fa0a2eb67ba2200e236d601f92b4a0979 @@ -1,9 +1,10 @@ # -*- shell-script -*- # vim: set ft=sh sw=4 et: # 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 @@ _monotone() { 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 @@ _monotone() { 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