Page MenuHomePhabricator

Allow users to skip "arc:prompt" by entering no text
ClosedPublic

Authored by epriestley on Sep 29 2015, 11:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 9:10 AM
Unknown Object (File)
Fri, Jan 24, 9:10 AM
Unknown Object (File)
Fri, Jan 24, 9:10 AM
Unknown Object (File)
Fri, Jan 24, 9:10 AM
Unknown Object (File)
Thu, Jan 23, 2:02 AM
Unknown Object (File)
Tue, Jan 21, 10:28 AM
Unknown Object (File)
Mon, Jan 20, 1:58 PM
Unknown Object (File)
Mon, Jan 20, 1:58 PM
Subscribers
None

Details

Summary

Fixes T9476. Currently, if you enter no text in "arc:prompt", we abort resolution immediately.

However, this is a bit inconsistent (other rules that fail to resolve are skipped) it is reasonable to put some default rule behind "arc:prompt" so that you can just mash enter to select it. This construction is unusual, but seems fine and sensible to me.

If you're using "arc:prompt" as the last rule, the behavior is the same as before, so this should only make the rule more useful.

Test Plan
  • Ran arc which --base 'arc:prompt, git:HEAD^' with and without the patch.
  • Without the patch, entering no text at "arc:prompt" failed immediately.
  • With the patch, entering no text caused fallback to the "git:HEAD^" rule.

Diff Detail

Repository
rARC Arcanist
Branch
prompt1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 8087
Build 9204: [Placeholder Plan] Wait for 30 Seconds
Build 9203: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Allow users to skip "arc:prompt" by entering no text.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 29 2015, 2:02 PM
This revision was automatically updated to reflect the committed changes.