#!/bin/bash
set -x
set -e
cd ~/Projects/Phabricator/PageUp/phabricator
git checkout -f HEAD
git checkout -fB patch-stack origin/master
arc patch --nobranch --skip-dependencies --force D8797
arc patch --nobranch --skip-dependencies --force D9130
arc patch --nobranch --skip-dependencies --force D9233
arc patch --nobranch --skip-dependencies --force D9234
arc patch --nobranch --skip-dependencies --force D9315
arc patch --nobranch --skip-dependencies --force D9113
arc patch --nobranch --skip-dependencies --force D9807
arc patch --nobranch --skip-dependencies --force D10304
arc patch --nobranch --skip-dependencies --force D10364
arc patch --nobranch --skip-dependencies --force D10378
arc patch --nobranch --skip-dependencies --force D10394
arc patch --nobranch --skip-dependencies --force D10395
arc patch --nobranch --skip-dependencies --force D10396
arc patch --nobranch --skip-dependencies --force D10409
arc patch --nobranch --skip-dependencies --force D10458
arc patch --nobranch --skip-dependencies --force D10459
arc patch --nobranch --skip-dependencies --force D10460
arc patch --nobranch --skip-dependencies --force D10469
arc patch --nobranch --skip-dependencies --force D10470
arc patch --nobranch --skip-dependencies --force D10471
arc patch --nobranch --skip-dependencies --force D10479
arc patch --nobranch --skip-dependencies --force D10504
arc patch --nobranch --skip-dependencies --force D10506
arc patch --nobranch --skip-dependencies --force D10507
arc patch --nobranch --skip-dependencies --force D10510
arc patch --nobranch --skip-dependencies --force D10511
arc patch --nobranch --skip-dependencies --force D10513
arc patch --nobranch --skip-dependencies --force D10517
arc patch --nobranch --skip-dependencies --force D10547
arc patch --nobranch --skip-dependencies --force D10556
arc patch --nobranch --skip-dependencies --force D10557
cd ~/Projects/Phabricator/PageUp/libphutil
git checkout -f HEAD
git checkout -fB patch-stack origin/master
arc patch --nobranch --skip-dependencies --force D10363
arc patch --nobranch --skip-dependencies --force D10555