changeset 413:337984b6af92

better
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 04 Aug 2013 23:03:06 -0700
parents 5bee5c55a7a0
children 41c3ea0a3513
files .bash_overrides
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
 }