hg diff|more
if [ $? -ne 0 ]; then 
    exit 1
fi;
hg ci
if [ $? -ne 0 ]; then 
    exit 1
fi;
./pull_stein
hg merge
./push_stein
