--- a/contrib/bash_completion Sun Jan 22 21:30:09 2012 +0100
+++ b/contrib/bash_completion Sat Jan 21 00:40:18 2012 +0100
@@ -84,6 +84,7 @@
{
local files="$(_hg_cmd status -n$1 .)"
local IFS=$'\n'
+ compopt -o filenames 2>/dev/null
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
}