]> khamidou — GitHub mirrors - arcanist.git/commit
Don't fatal without Conduit for "--patch" and "--bundle"
authorepriestley <git@epriestley.com>
Fri, 16 Mar 2012 20:40:33 +0000 (13:40 -0700)
committerepriestley <git@epriestley.com>
Fri, 16 Mar 2012 20:40:33 +0000 (13:40 -0700)
commit89753d5d4961e70ee7b7c2e71a60b16ae79a42b0
tree65b77d82da35f2c33cb57ed6c1bc00af10ac0a13
parentf15479c832d836424a070bfee7263548882ef785
Don't fatal without Conduit for "--patch" and "--bundle"

Summary:
In some workflows, we don't have Conduit at all, so we'll fail with a raw exception. Test for conduit presence before trying to make the encoding call.

Also move some "instanceof" logic for updates into RepositoryAPI (factoring, windows compat).

Test Plan: Ran "arc patch --patch some.patch".

Reviewers: 20after4, davidreuss, nh, btrahan

Reviewed By: 20after4

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1935
src/repository/api/base/ArcanistRepositoryAPI.php
src/repository/api/git/ArcanistGitAPI.php
src/repository/api/mercurial/ArcanistMercurialAPI.php
src/repository/api/subversion/ArcanistSubversionAPI.php
src/workflow/patch/ArcanistPatchWorkflow.php