Since it is not marked or named "ubuntu", and also because googling with fedora is included here, I will add Martin's answer option, which works by referring to /etc/bash_completion.d/mercurial.sh instead of /etc/bash_completion to your ~/.bashrc :
# Use bash-completion, if available if [ -f /etc/bash_completion.d/mercurial.sh ]; then . /etc/bash_completion.d/mercurial.sh fi
Not sure if the OS makes this distinction necessary, but it works for me on Fedora 11 to 20.
Fix: Fedora 11 and Fedora 20. (Not tested 12-19.)
Dan ross
source share