Page MenuHomePhabricator

Make directory fixture script slightly more modern and usable
ClosedPublic

Authored by epriestley on Jan 21 2014, 3:34 PM.
Tags
None
Referenced Files
F19822569: D8021.id18165.diff
Mar 7 2026, 6:34 AM
F19819425: D8021.id18165.diff
Mar 6 2026, 6:12 AM
F19786797: D8021.id18165.diff
Feb 25 2026, 12:19 PM
F19613952: D8021.id18142.diff
Feb 3 2026, 9:25 PM
F19559497: D8021.diff
Jan 31 2026, 1:30 AM
F18771777: D8021.id.diff
Oct 8 2025, 9:42 PM
F18766778: D8021.diff
Oct 7 2025, 6:30 PM
F18657404: D8021.id.diff
Sep 23 2025, 1:40 AM
Subscribers

Details

Summary

Ref T4327. I made some small changes to this script while developing parser unit tests. Mostly:

  • Add pht().
  • Use PhutilConsole.
  • Throw PhutilArugmentUsageException for questionable usage.
  • Add a --read-only flag to ignore changes on exit.
  • Show the CWD after unpacking the fixture, which makes it easier to svn checkout file://... it.
  • Improve some language.
Test Plan

Tested all the features; used these features while working on T4327 to good effect.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped