From 8a1ffaf790d964e665e48b115f4a0c35a91de50f Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 12 May 2006 18:24:29 +0000 Subject: - Unified the mv|move|rename completion (as happened in bzr). - Added resolved, bind, break-lock, reconcile, unbind, nick, init-repo, init-repository, uncommit, and sign-my-commits. --- Completion/Unix/Command/_bzr | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_bzr b/Completion/Unix/Command/_bzr index 9e7e19f15..093adc857 100644 --- a/Completion/Unix/Command/_bzr +++ b/Completion/Unix/Command/_bzr @@ -87,11 +87,11 @@ case $cmd in _bzr_completeParents ;; -(rename|mv) +(rename|move|mv) if (( CURRENT == 2 )); then - args+=( '*:old name:_bzr_versionedFiles' ) + args+=( '*:files:_bzr_versionedFiles' ) else - args+=( '*:new name:' ) + args=( '*:destination dir:_files -/' ) fi ;; @@ -120,7 +120,7 @@ case $cmd in ) ;; -(resolve) +(resolve|resolved) args+=( '--all[resolve all conflicts in this tree]' '*:file:_bzr_versionedFiles' @@ -196,10 +196,14 @@ case $cmd in ) ;; -(conflicts|added|deleted|modified|unknowns|directories|ignored) +(bind|break-lock|reconcile) + _bzr_completeParents + ;; + +(conflicts|added|deleted|modified|unknowns|directories|ignored|unbind|nick) ;; -(revno|init|version) +(revno|init|init-repo|init-repository|version) ;; (whoami) @@ -279,18 +283,6 @@ case $cmd in ) ;; -(move) - if (( CURRENT == 2 )); then - args+=( - '*:files:_bzr_versionedFiles' - ) - else - args=( - '*:destination dir:_files -/' - ) - fi - ;; - (help) args=( '(-l --long)'{--long,-l}'[use long format]' @@ -331,6 +323,19 @@ case $cmd in ) ;; +(uncommit) + args+=( + '--dry-run[do not make any changes]' + '--force[say "yes" to all questions]' + '(-r --revision)'{--revision,-r}'[the earliest revision to delete]:rev:' + '(-v --verbose)'{--verbose,-v}'[display more information]' + ) + ;; + +(sign-my-commits) + args+=( '--dry-run[do not actually sign anything]' ) + ;; + (*) _message "unknown bzr command completion: $cmd" return 1 -- cgit 1.4.1