# HG changeset patch # User Steve Huston # Date 1366737111 14400 # Node ID c4dccb49471b0a321cbfac8ad5753fe47720abe1 # Parent 0b67280c980cc2cd23383bf73c25eff02c4f86ea 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. diff -r 0b67280c980c -r c4dccb49471b .bash_profile --- 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