#!/bin/sh set -x #git checkout buildtarget #git checkout master_site_n #git checkout target_options_helpers #git checkout various_fixes # comment this to do a rebase exit 0 git checkout trunk before=$(git show-ref --hash refs/heads/trunk) git svn rebase -v after=$(git show-ref --hash refs/heads/trunk) if [ $before != $after ] then for i in $(git branch --no-merge origin/trunk) do git checkout $i git rebase origin/trunk # When creating a new branch and review, run # git git config --local --add branch.{branch}.review DXXXX if git config branch.${i}.review then arc diff --update $(git config branch.${i}.review) --message 'rebase' else echo ">>>>>>>> UNABLE TO UPDATE PHABRICATOR !!!! <<<<<<<<<<<" fi done fi git checkout trunk