changeset 3558: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 f7dee427cd14
children 35b99f076d02
files contrib/zsh_completion
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/zsh_completion	Thu Oct 26 19:25:45 2006 +0200
+++ b/contrib/zsh_completion	Thu Oct 26 17:28:12 2006 -0700
@@ -134,7 +134,7 @@
 }
 
 _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() {