Page MenuHomePhabricator

Allow arc patch to keep empty commits
AbandonedPublic

Authored by vm on Sep 8 2014, 6:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 4:17 PM
Unknown Object (File)
Tue, Apr 2, 10:14 PM
Unknown Object (File)
Mon, Apr 1, 9:20 PM
Unknown Object (File)
Thu, Mar 28, 3:26 PM
Unknown Object (File)
Thu, Mar 28, 4:03 AM
Unknown Object (File)
Tue, Mar 26, 5:12 PM
Unknown Object (File)
Mar 3 2024, 10:10 AM
Unknown Object (File)
Mar 1 2024, 12:26 PM

Details

Summary

This is in an effort to simplify test automation around dependent diffs workflow.
If you have dependent diffs where some of the dependencies have already landed into HEAD, a arc patch --nobranch on the dependent diff fails since 'get cherry-pick' does not allow empty commits.
This lets you set a flag that gets passed down to git cherry-pick which allows and keeps empty commits around.

Fixes one of the problems mentioned in T5986

Test Plan

arc patch --nobranch D1 fails, but arc patch --nobranch --keep-redundant-commits D1 runs successfully and adds a empty commit to the working copy.

Diff Detail

Repository
rARC Arcanist
Branch
kec
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2464
Build 2468: [Placeholder Plan] Wait for 30 Seconds