]> khamidou — GitHub mirrors - arcanist.git/commit
Check for cleanWorkingCopy in sanityCheck, and execute sanityCheck first
authorKevin Deggelman <kevin@tenxer.com>
Fri, 3 Feb 2012 22:04:41 +0000 (14:04 -0800)
committerepriestley <git@epriestley.com>
Fri, 3 Feb 2012 22:05:53 +0000 (14:05 -0800)
commitc44e8d57a2d5f310d404d328dd744df1e73fbb81
tree69b20a3fd011cfd204329a5ccc590cfde5075466
parent85083db929f384dee0d40f5ea8938348d7907326
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 <revision id>## from a dirty working copy
and verify that a usage exception is thrown before the new branch is
created.
  - Run ##arc patch <revision id> --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 <revision
    id> works as expected

Reviewers: epriestley, btrahan

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T830, T479

Differential Revision: https://secure.phabricator.com/D1546
src/workflow/patch/ArcanistPatchWorkflow.php