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
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
F18620344: D8021.diff
Sep 15 2025, 4:58 AM
F18049116: D8021.id18165.diff
Aug 3 2025, 3:27 PM
F18028786: D8021.id.diff
Aug 2 2025, 11:01 PM
F17983777: D8021.diff
Aug 1 2025, 8:12 PM
Unknown Object (File)
Jun 9 2025, 1:52 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