1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-01-21 04:01:29 +01:00
phorge-arcanist/src/repository/api/mercurial
epriestley 89753d5d49 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
2012-03-16 13:40:33 -07:00
..
__init__.php ArcanistRepositoryAPI: add getCanonicalRevisionName 2012-03-12 16:12:01 -07:00
ArcanistMercurialAPI.php Don't fatal without Conduit for "--patch" and "--bundle" 2012-03-16 13:40:33 -07:00