# HG changeset patch # User Brendan Cully # Date 1161908892 25200 # Node ID 73383560236587fb08549f97d811a634d2060cf5 # Parent f7dee427cd140345a232c3d5bec8bcae76d5e5b8 zsh: suppress error message for status completion outside of repository diff --git a/contrib/zsh_completion b/contrib/zsh_completion --- 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() {