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
F15481121: D19292.id.diff
Tue, Apr 8, 6:20 PM
F15476829: D19292.diff
Mon, Apr 7, 9:44 AM
F15471444: D19292.diff
Sat, Apr 5, 5:00 AM
F15448169: D19292.id46158.diff
Fri, Mar 28, 3:21 AM
F15448168: D19292.id.diff
Fri, Mar 28, 3:21 AM
F15446674: D19292.diff
Thu, Mar 27, 7:43 PM
F15410225: D19292.diff
Wed, Mar 19, 6:55 AM
F15404823: D19292.id46159.diff
Tue, Mar 18, 9:15 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
Branch
patch1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19979
Build 27093: Run Core Tests
Build 27092: arc lint + arc unit

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.