Hi, These are really minor improvements which add branch selectors: i.e. I often do mtn update -r h:some.branch.I.want.to.switch.to
Patch made against last update to contrib/monotone.bash_completion Matthew
--- 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 <[EMAIL PROTECTED]> # Contributions by Matthew A. Nicholson <[EMAIL PROTECTED]> +# and Matthew Sackman <[EMAIL PROTECTED]> # source this file from your .bashrc # If you use the bash completion package <http://www.caliban.org/bash/>, @@ -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
_______________________________________________ Monotone-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/monotone-devel
