zsh: suppress error message for status completion outside of repository
authorBrendan Cully <brendan@kublai.com>
Thu, 26 Oct 2006 17:28:12 -0700
changeset 3558 733835602365
parent 3557 f7dee427cd14
child 3559 35b99f076d02
zsh: suppress error message for status completion outside of repository
contrib/zsh_completion
--- 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() {