merge.py 默认 dry-run,不再回落到 VATPRC 树 #2
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1-merge-dry-run"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
merge.py以前直接写Sector/<FIR>/Plugins/GroundMap/ground.json,没有 dry-run。_default_repo()在没有同级Sector/时回落到~/Documents/Dev/Sector,那是一份 VATPRC 包,写进去无法回退。现在默认只打印将要写到哪;
--apply才写。未设SECTOR_REPO且没有同级Sector/时退出并打印 export 行。CI 已带--apply。Fixes #1
Test plan
python -m unittest discover -s tools -p 'test_*.py'python tools/merge.py ZGZU不改 Sector 工作区python tools/merge.py ZGZU --apply才写出 ground.json