Page MenuHomePhabricator

Give PhutilRope and LinesOfALarge a couple new capabilities
ClosedPublic

Authored by epriestley on Jan 21 2016, 5:21 PM.
Tags
None
Referenced Files
F18092630: D15071.id36394.diff
Thu, Aug 7, 11:59 AM
F18065325: D15071.id.diff
Mon, Aug 4, 2:05 PM
F18053295: D15071.id36392.diff
Mon, Aug 4, 4:26 AM
F18049900: D15071.diff
Sun, Aug 3, 5:43 PM
Unknown Object (File)
Jul 4 2025, 10:39 AM
Unknown Object (File)
Jul 3 2025, 4:07 AM
Unknown Object (File)
Jul 1 2025, 5:32 PM
Unknown Object (File)
Jun 16 2025, 9:50 PM
Subscribers
None

Details

Summary

Ref T10186. To fix that, I need to stream files out of commands like git cat directly into file storage.

This adds two capabilities to support this:

  • LinesOfALarge can now just ignore delimiters and stream all the data directly.
  • PhutilRope can now produce a prefix of a specific length (this is used to produce a chunk-sized prefix).
Test Plan

See next revision.

Diff Detail

Repository
rPHU libphutil
Branch
stream1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10228
Build 12433: Run Core Tests
Build 12432: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Give PhutilRope and LinesOfALarge a couple new capabilities.
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.Jan 21 2016, 5:40 PM
This revision was automatically updated to reflect the committed changes.