# HG changeset patch # User Kevin Bullock # Date 1253759387 18000 # Node ID 33033af093088d7c5a234a008dde4dd675d33dd4 # Parent 8bd669948b2ef5d61bd125ac01a4b698a1ac2126 bash_completion: add completions for shelve extension diff -r 8bd669948b2e -r 33033af09308 contrib/bash_completion --- a/contrib/bash_completion Thu Oct 01 11:40:53 2009 +0200 +++ b/contrib/bash_completion Wed Sep 23 21:29:47 2009 -0500 @@ -530,3 +530,20 @@ return } +# shelve +_hg_shelves() +{ + local shelves="$("$hg" unshelve -l . 2>/dev/null)" + local IFS=$'\n' + COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur")) +} + +_hg_cmd_shelve() +{ + _hg_status "mard" +} + +_hg_cmd_unshelve() +{ + _hg_shelves +}