Page MenuHomePhabricator

Properly URL encode branches in `arc browse --branch ...`
ClosedPublic

Authored by epriestley on Mar 4 2016, 11:51 PM.
Tags
None
Referenced Files
F19050010: D15397.id.diff
Thu, Nov 27, 6:45 PM
F19039317: D15397.diff
Wed, Nov 26, 7:16 AM
F18839727: D15397.id.diff
Oct 27 2025, 6:32 PM
F18834277: D15397.diff
Oct 26 2025, 7:33 AM
F18768613: D15397.id37123.diff
Oct 8 2025, 4:30 AM
F18701837: D15397.id37124.diff
Sep 27 2025, 9:24 PM
F18696103: D15397.id37123.diff
Sep 27 2025, 7:00 AM
F18684408: D15397.diff
Sep 26 2025, 9:28 AM
Subscribers
None

Details

Summary

Fixes T10511. If you arc browse --branch x/y/z, we do not encode the URI properly.

Test Plan

Ran arc browse --branch x/y/z/ something.c.

Before, got an error about "x" does not exist. This is wrong; the error should be about "x/y/z".

After, got the proper error:

Screen Shot 2016-03-04 at 3.49.14 PM.png (775×1 px, 92 KB)

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Properly URL encode branches in `arc browse --branch ...`.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
avivey added a reviewer: avivey.
This revision is now accepted and ready to land.Mar 4 2016, 11:52 PM
This revision was automatically updated to reflect the committed changes.