HomePhabricator

Make directory fixture script slightly more modern and usable

Description

Make directory fixture script slightly more modern and usable

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.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4327

Differential Revision: https://secure.phabricator.com/D8021

Details

Provenance
epriestleyAuthored on
epriestleyPushed on Jan 21 2014, 10:10 PM
Reviewer
btrahan
Differential Revision
D8021: Make directory fixture script slightly more modern and usable
Parents
rPHUd98bd96e149a: underline rule - tweak it a bit
Branches
Unknown
Tags
Unknown
Tasks
T4327: Problems trying to import project

Event Timeline