Phabricator/Upstream Rebase
Appearance
- Have a checkout of the Wikimedia Phabricator codebase
git checkout wmf/stablegit pullgit remote -v- If not listed:
git remote add phorge https://we.phorge.it/source/phorge.git
- If not listed:
git fetch phorgegit checkout phorge/master- Check out a new branch of Wikimedia Phabricator to merge onto, from wmf/stable:
git checkout -b work/2026-06-01-merge-phorge - FYI:
git branch -a - git fetch from upstream and merge upstream into our branch:
git merge phorge/master
- Usually there are some files with conflicts to resolve; within MERGING mode:
git status- edit a file to resolve the conflict (Note that "HEAD" in conflicting files is the Wikimedia instance)
- FYI:
To reset to upstream's file:git checkout --theirs /foo/bar/file.php git add filename
- Treat the list of merge conflicts as a checklist and copy them into the commit message
./bin/celerity map../arcanist/bin/arc liberategit commitgit push origin work/2026-06-01-merge-phorge
- Now repeat the same dance for arcanist
- Later when deploying:
./bin/storage upgradefor database changes./bin/celerity mapif things go wrong- The deployment finalize script already runs
./bin/storage upgradeto adjust the database scheme