Page MenuHomePhabricator

When landing changes in an empty repository, merge cleanly in Git
ClosedPublic

Authored by epriestley on Jun 7 2020, 3:29 PM.
Tags
None
Referenced Files
F13345596: D21324.diff
Fri, Jun 21, 11:02 AM
F13313729: D21324.id.diff
Tue, Jun 11, 10:25 AM
F13313239: D21324.diff
Tue, Jun 11, 7:37 AM
F13300059: D21324.diff
Fri, Jun 7, 8:46 AM
F13282367: D21324.diff
Sun, Jun 2, 11:59 AM
F13272465: D21324.id50787.diff
Thu, May 30, 2:17 PM
F13244323: D21324.diff
Thu, May 23, 4:42 AM
F13243965: D21324.id50754.diff
Thu, May 23, 4:23 AM
Subscribers
None

Details

Summary

Fixes T12876. Ref T13546. When you make the first change in a new Git repository, "arc land" currently can not merge it because there's nothing to merge into.

Support merging into the empty state formally, reachable by using "--into-empty" (which should be uncommon) or "arc land" in an empty repository.

Test Plan
  • Used "arc land --into-empty --hold ..." to generate merges against the empty state under "squash" and "merge" strategies in Git.
    • Got sensible result commits with appropriate parents and content.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jun 8 2020, 11:20 PM
This revision was automatically updated to reflect the committed changes.