From a9c30b05af1e47e2c8cc6e32763ace5ad096d462 Mon Sep 17 00:00:00 2001 From: Anton Shestakov Date: Mon, 13 Aug 2018 14:53:17 +0800 Subject: [PATCH] hg completion: complete abbreviations of hg archive (plus --type) --- share/completions/hg.fish | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/share/completions/hg.fish b/share/completions/hg.fish index 410832649..95859bec3 100644 --- a/share/completions/hg.fish +++ b/share/completions/hg.fish @@ -427,14 +427,14 @@ end # hg archive for cmd in ar arc arch archi archiv archive - complete -c hg -n "__fish_hg_using_command archive" -l no-decode -d "do not pass files through decoders" - complete -c hg -n "__fish_hg_using_command archive" -s p -l prefix -x -d "directory prefix for files in archive" - complete -c hg -n "__fish_hg_using_command archive" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to distribute" - complete -c hg -n "__fish_hg_using_command archive" -s t -l type -x -d "type of distribution to create" - complete -c hg -n "__fish_hg_using_command archive" -s S -l subrepos -d "recurse into subrepositories" - complete -c hg -n "__fish_hg_using_command archive" -s I -l include -x -d "include names matching the given patterns" - complete -c hg -n "__fish_hg_using_command archive" -s X -l exclude -x -d "exclude names matching the given patterns" - complete -c hg -n "__fish_hg_using_command archive; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" + complete -c hg -n "__fish_hg_using_command $cmd" -l no-decode -d "do not pass files through decoders" + complete -c hg -n "__fish_hg_using_command $cmd" -s p -l prefix -x -d "directory prefix for files in archive" + complete -c hg -n "__fish_hg_using_command $cmd" -s r -l rev -x -a "(__fish_hg_labels)" -d "revision to distribute" + complete -c hg -n "__fish_hg_using_command $cmd" -s t -l type -x -a "files tar tbz2 tgz uzip zip" -d "type of distribution to create" + complete -c hg -n "__fish_hg_using_command $cmd" -s S -l subrepos -d "recurse into subrepositories" + complete -c hg -n "__fish_hg_using_command $cmd" -s I -l include -x -d "include names matching the given patterns" + complete -c hg -n "__fish_hg_using_command $cmd" -s X -l exclude -x -d "exclude names matching the given patterns" + complete -c hg -n "__fish_hg_using_command $cmd; and __fish_hg_mq_enabled" -l mq -d "operate on patch repository" end # hg backout