facebook/arcanist — pull request #18 by kdeggelman (2012-02-03 22:10:49+00:00)
Title: Check for cleanWorkingCopy in sanityCheck, and execute sanityCheck first

Summary:
- Renamed sanityCheckPatch to sanityCheck
- Move check for clean working copy into sanityCheck
- Execute sanityCheck before executing any other command

Test Plan:
- Run ##arc patch ## from a dirty working copy
and verify that a usage exception is thrown before the new branch is
created.
- Run ##arc patch --force## and verify that it attempts
to create a new branch, apply, and commit the patch.
- Then clean your working copy and verify that ##arc patch works as expected

Reviewers: epriestley, btrahan

Reviewed By: btrahan

CC: aran, epriestley

Maniphest Tasks: T830, T479

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