Mercurial > dnsbl
changeset 199:d1ef12ab18b6
check for uncommitted changes, and for pending push changesets
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 02 Feb 2008 12:09:12 -0800 |
parents | fbcf2733fe79 |
children | c7efbf2ffd8b |
files | package |
diffstat | 1 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/package Sat Feb 02 11:58:46 2008 -0800 +++ b/package Sat Feb 02 12:09:12 2008 -0800 @@ -2,6 +2,21 @@ find . -name '*~' | while read a; do rm -f "$a"; done +# check for uncommitted changes +a=$(hg status) +if [ -n "$a" ]; then + hg status + echo "fix those first with 'hg commit'" + exit 0 +fi + +# check for changesets pending push to global repository +hg outgoing /usr/hg*/dnsbl | grep 'no changes found' >/dev/null +if [ $? -ne 0 ]; then + hg outgoing /usr/hg*/dnsbl + echo "fix those first with 'hg push /usr/hg*/dnsbl'" + exit 0 +fi # get a new clean copy from source control orig=$(pwd)