contrib/zsh_completion
changeset 3597 0d253ec988a6
parent 3587 c8494fcc9d39
child 3598 27121416f9a8
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -80,7 +80,10 @@ typeset -A _hg_cmd_globals
   then
     curcontext="${curcontext%:*:*}:hg-${cmd}:"
     _hg_cmd_${cmd}
-    return
+  else
+    # complete unknown commands normally
+    _arguments -s -w : $_hg_global_opts \
+      '*:files:_files -W $(_hg_cmd root)'
   fi
 }