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
F19688729: D15071.diff
Mon, Feb 9, 7:19 PM
F19582452: D15071.diff
Feb 1 2026, 10:18 PM
F19576092: D15071.id.diff
Feb 1 2026, 8:36 AM
F19576091: D15071.id.diff
Feb 1 2026, 8:36 AM
F19516275: D15071.diff
Jan 14 2026, 10:10 PM
F18997383: D15071.id36392.diff
Nov 20 2025, 11:54 AM
F18877580: D15071.id.diff
Nov 6 2025, 10:23 AM
F18877578: D15071.id.diff
Nov 6 2025, 10:23 AM
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.