Mercurial > index.cgi > dotfiles
changeset 83:c4dccb49471b
HG tests changed
* Rather than updating from local->WC every time, test if 'id' == 'tip'. This
may break on a branch, but 1) there shouldn't be branches here and 2) I can
fix that later.
* Not only test incoming, but outgoing as well; this will flush out if there's
been a checkin but no push.
author | Steve Huston <huston@srhuston.net> |
---|---|
date | Tue, 23 Apr 2013 13:11:51 -0400 |
parents | 0b67280c980c |
children | fe021064d723 |
files | .bash_profile |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/.bash_profile Tue Apr 23 12:15:04 2013 -0400 +++ b/.bash_profile Tue Apr 23 13:11:51 2013 -0400 @@ -50,7 +50,7 @@ # hg incoming returns 0 if there's changes, 1 if there isn't # The goal will then be to only touch .dotfilets if there's no changes # upstream - hg -q incoming || touch $HOME/.dotfilets & + hg -q incoming || hg -q outgoing || touch $HOME/.dotfilets & disown %+ else echo , but no keys loaded yet - add SSH keys and retrigger test. @@ -62,4 +62,7 @@ # network, so we can afford to run them any time. Make sure there's nothing # to pull from the local repository to the working directory and the working # directory is clean. -hg -q checkout -c || hg status +if [ "`hg -q tip | sed 's/.*://'`" != "`hg -q id | sed 's/\+//'`" ] ; then + echo Local repository contains updates. +fi +hg status