Homec4science

Make directory fixture script slightly more modern and usable

Authored by epriestley <git@epriestley.com> on Jan 21 2014, 23:10.

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

Committed
epriestley <git@epriestley.com>Jan 21 2014, 23:10
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUd98bd96e149a: underline rule - tweak it a bit
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU6ee25dfe7db5: Make directory fixture script slightly more modern and usable (authored by epriestley <git@epriestley.com>).Jan 21 2014, 23:10