mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* chore(rename): add a script that moves an open branch across the rename Part of #6589. After the cut, a branch that forked before it conflicts on every Java file it touches. tools/rename/rebase_across_rename.sh runs rename_package.py apply on the branch's merge-base and on its tip, and cherry-picks the renamed tip onto the target with the renamed merge-base as the merge base, so only real conflicts remain. The branch becomes one commit carrying every original message in order, sign-offs included, and the first commit's author; the old tip is kept as <branch>-before-rename and nothing is pushed. rename_package.py now imports the partition lexer only for report, so apply runs on a bare python3 without PyYAML. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * fix(rename): run the rebase script from any directory of the checkout git rev-list pathspecs and git archive paths are relative to the current directory, so a run from a subdirectory found no cut and reported that the rename had not landed. The script now changes to the top level first. Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>