]> khamidou — GitHub mirrors - arcanist.git/commit
Improve "arc patch" error messages for mismatched local and diff
authorepriestley <git@epriestley.com>
Fri, 10 Aug 2012 01:39:41 +0000 (18:39 -0700)
committerepriestley <git@epriestley.com>
Fri, 10 Aug 2012 01:39:41 +0000 (18:39 -0700)
commitd2e0dc3e68f7709055504a67332b02a0ca6c3d24
tree41e6ed2c18eadee629ffc6ea7b417b280763b4a3
parent239b90a07694ac9e36d33b02c703f76df0de4277
Improve "arc patch" error messages for mismatched local and diff

Summary: We emit a confusing error if there's no ".arcconfig" in the local right now.

Test Plan:
  $ arc patch D3185

    This patch is for the 'phabricator' project,  but the working copy
    belongs to the 'phabricatox' project. Still try to apply the patch? [Y/n]

  $ arc patch D3185

    This patch is for the 'phabricator' project, but the working copy does
    not have an '.arcconfig' file to identify which project it belongs to.
    Still try to apply the patch? [Y/n]

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran
Differential Revision: https://secure.phabricator.com/D3231
src/workflow/ArcanistPatchWorkflow.php