Page MenuHomePhabricator

Improve argument parsing for "arc patch --revision Dxxx"
ClosedPublic

Authored by epriestley on Apr 3 2018, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 3:13 PM
Unknown Object (File)
Tue, Apr 2, 2:29 PM
Unknown Object (File)
Sun, Mar 31, 11:37 AM
Unknown Object (File)
Sat, Mar 30, 4:31 PM
Unknown Object (File)
Sat, Mar 30, 4:31 PM
Unknown Object (File)
Sat, Mar 30, 4:31 PM
Unknown Object (File)
Thu, Mar 28, 2:27 PM
Unknown Object (File)
Mar 5 2024, 6:35 AM
Subscribers
None

Details

Summary

See PHI527. Ref T13116. The --revision flag currently fails if the argument is in the form D123 instead of 123. Normalize monogram arguments.

Test Plan

Ran arc patch --revision Dxxx, arc patch --revision xxx, arc patch --revision xxx --diff yyy, arc patch; got good behavior on the good ones and sensible error messages on the other ones.

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.Apr 3 2018, 5:56 PM
This revision was automatically updated to reflect the committed changes.