# HG changeset patch # User Jeff Hammel # Date 1375682586 25200 # Node ID 337984b6af92ab965f8b442be3f0e87b79435a2d # Parent 5bee5c55a7a0f4d4ecbac2798bb6e09bb6fc59af better diff -r 5bee5c55a7a0 -r 337984b6af92 .bash_overrides --- a/.bash_overrides Sun Aug 04 22:59:52 2013 -0700 +++ b/.bash_overrides Sun Aug 04 23:03:06 2013 -0700 @@ -98,7 +98,7 @@ } function hg { - if [[ "$(hg root)" == "${HOME}" ]] + if [[ "$(command hg root)" == "${HOME}" ]] then if [[ "$*" == st* ]] then @@ -108,6 +108,7 @@ if [[ "$*" == res* ]] || [[ "$*" == pu* ]] then echo "Aborting \'hg $*\'; hg root is ${HOME}!" + return 1 fi fi }