diff contrib/zsh_completion @ 3544:733835602365

zsh: suppress error message for status completion outside of repository
author Brendan Cully <brendan@kublai.com>
date Thu, 26 Oct 2006 17:28:12 -0700
parents ef80b13df85a
children 35b99f076d02
line wrap: on
line diff
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -134,7 +134,7 @@ typeset -A _hg_cmd_globals
 }
 
 _hg_status() {
-  status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 .)"})
+  status_files=(${(ps:\0:)"$(_hg_cmd status -0n$1 . 2>/dev/null)"})
 }
 
 _hg_unknown() {