08e55a437823 — Joe Ulfers 2 years ago
Check outgoing
1 files changed, 8 insertions(+), 4 deletions(-)

M deploy.sh
M deploy.sh +8 -4
@@ 2,12 2,16 @@ 
 set -eo pipefail
 
 if [[ -n $(hg stat) ]]; then
-    echo "Error: uncommitted changes" >&2
-    exit 1
+  echo "Error: uncommitted changes" >&2
+  exit 1
 fi
 if [[ "$(hg branch)" != "default" ]]; then
-    echo "Error: not default branch" >&2
-    exit 1
+  echo "Error: not default branch" >&2
+  exit 1
+fi
+if hg outgoing; then
+  echo "Error: outgoing changes" >&2
+  exit 1
 fi
 
 ssh -T root@qwertywar.com << PRE