Page MenuHomePhabricator

Fix an issue with "arc nrabch"
ClosedPublic

Authored by epriestley on Sep 15 2015, 4:45 PM.
Tags
None
Referenced Files
F13130055: D14112.diff
Wed, May 1, 5:41 AM
Unknown Object (File)
Mon, Apr 29, 4:40 PM
Unknown Object (File)
Mon, Apr 29, 4:40 PM
Unknown Object (File)
Mon, Apr 29, 4:40 PM
Unknown Object (File)
Mon, Apr 29, 3:52 PM
Unknown Object (File)
Sat, Apr 27, 10:24 PM
Unknown Object (File)
Thu, Apr 25, 4:35 PM
Unknown Object (File)
Wed, Apr 24, 11:48 PM
Subscribers
None

Details

Summary

Fixes a minor issue from D14034. PHP doesn't like clone null;, and if you type a nonsense command like arc nbrhch (as I frequently do) we try to clone null here.

Instead, just return null; if no workflow matches. Clone otherwise.

Test Plan
  • Ran arc nbrhcanc
  • Ran arc branch

Diff Detail

Repository
rARC Arcanist
Branch
clone
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7986
Build 9002: [Placeholder Plan] Wait for 30 Seconds
Build 9001: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Fix an issue with "arc nrabch".
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, BYK.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 15 2015, 4:47 PM
This revision was automatically updated to reflect the committed changes.