Page MenuHomePhabricator

Refine "arc land" behavior when pushing "onto" a new branch
ClosedPublic

Authored by epriestley on Jun 8 2020, 11:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 9:27 AM
Unknown Object (File)
Sun, Jan 19, 8:52 AM
Unknown Object (File)
Fri, Jan 17, 2:39 AM
Unknown Object (File)
Sat, Jan 11, 8:46 AM
Unknown Object (File)
Thu, Dec 26, 12:30 AM
Unknown Object (File)
Dec 22 2024, 3:17 AM
Unknown Object (File)
Dec 20 2024, 7:36 PM
Unknown Object (File)
Dec 20 2024, 8:27 AM
Subscribers
None

Details

Summary

Ref T13546. If the "onto" branch doesn't exist yet and has a "/" in it, we need to preface it with "refs/heads" explicitly.

Fix a "false/null" issue with argument validation.

Possibly, "arc land" should prompt you before creating branches in the remote.

Test Plan

Ran "arc land --onto does-not-exist/1.1" and created a branch.

Diff Detail

Repository
rARC Arcanist
Branch
land35
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/land/engine/ArcanistGitLandEngine.php:889XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 24625
Build 33946: Run Core Tests
Build 33945: arc lint + arc unit

Event Timeline

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