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)
Tue, Nov 19, 4:08 PM
Unknown Object (File)
Oct 18 2024, 3:03 AM
Unknown Object (File)
Oct 14 2024, 5:31 PM
Unknown Object (File)
Oct 10 2024, 8:45 PM
Unknown Object (File)
Oct 6 2024, 5:40 PM
Unknown Object (File)
Sep 12 2024, 6:53 PM
Unknown Object (File)
Sep 12 2024, 6:52 PM
Unknown Object (File)
Sep 12 2024, 6:52 PM
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.