Mercurial > hg > config
comparison .bash_overrides @ 413:337984b6af92
better
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Sun, 04 Aug 2013 23:03:06 -0700 |
| parents | 5bee5c55a7a0 |
| children | 41c3ea0a3513 |
comparison
equal
deleted
inserted
replaced
| 412:5bee5c55a7a0 | 413:337984b6af92 |
|---|---|
| 96 #echo $COMMAND # for debugging | 96 #echo $COMMAND # for debugging |
| 97 `which find` -L "$DIR" -not -path '*.svn*' "$@" | 97 `which find` -L "$DIR" -not -path '*.svn*' "$@" |
| 98 } | 98 } |
| 99 | 99 |
| 100 function hg { | 100 function hg { |
| 101 if [[ "$(hg root)" == "${HOME}" ]] | 101 if [[ "$(command hg root)" == "${HOME}" ]] |
| 102 then | 102 then |
| 103 if [[ "$*" == st* ]] | 103 if [[ "$*" == st* ]] |
| 104 then | 104 then |
| 105 command hg st -q | 105 command hg st -q |
| 106 return | 106 return |
| 107 fi | 107 fi |
| 108 if [[ "$*" == res* ]] || [[ "$*" == pu* ]] | 108 if [[ "$*" == res* ]] || [[ "$*" == pu* ]] |
| 109 then | 109 then |
| 110 echo "Aborting \'hg $*\'; hg root is ${HOME}!" | 110 echo "Aborting \'hg $*\'; hg root is ${HOME}!" |
| 111 return 1 | |
| 111 fi | 112 fi |
| 112 fi | 113 fi |
| 113 } | 114 } |
| 114 | 115 |
| 115 function lsdiff { | 116 function lsdiff { |
