# HG changeset patch
# User Jonas Diemer <diemer@gmx.de>
# Date 1205276043 -3600
#      Tue Mar 11 23:54:03 2008 +0100
# Node ID 59200a2de7bf61d948e4efeb40b6cd743eefd310
# Parent  5e5ce714ba95bb4590cddf2b1a03f9f00669dd70
Fixed bash completion for filenames containing spaces.

diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -78,6 +78,7 @@
 _hg_status()
 {
     local files="$("$hg" status -n$1 . 2>/dev/null)"
+    local IFS=$'\n'
     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
 }