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)
Sat, Dec 28, 3:14 PM
Unknown Object (File)
Thu, Dec 26, 5:16 PM
Unknown Object (File)
Thu, Dec 26, 9:50 AM
Unknown Object (File)
Sat, Dec 21, 5:59 PM
Unknown Object (File)
Mon, Dec 16, 1:52 PM
Unknown Object (File)
Thu, Dec 12, 11:36 PM
Unknown Object (File)
Nov 26 2024, 2:07 PM
Unknown Object (File)
Nov 21 2024, 1:44 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.