# HG changeset patch # User Steve Huston # Date 1366593552 14400 # Node ID 4a09583afaac06101e3ee7017fc0fc73043c9252 # Parent 10c8cd44bf0a39c9169d8998ec5b3e14e93fecb9 Do a checkout if there's nothing uncommitted diff -r 10c8cd44bf0a -r 4a09583afaac .bash_profile --- a/.bash_profile Sun Apr 21 21:11:06 2013 -0400 +++ b/.bash_profile Sun Apr 21 21:19:12 2013 -0400 @@ -59,5 +59,7 @@ } # Meanwhile, local changes are not costly and don't require a trip down the -# network, so we can afford to run them any time. -hg status +# 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 checkout -c || hg status