1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-22 21:40:54 +01:00
phorge-arcanist/scripts
epriestley b9fa71f7e1 Allow arc to be run in arcanist/ or libphutil/
Summary:
Currently, if you run `arc` in arcanist/ or libphutil/ and your PATH and on-disk configuration are set up so a different version of arc or libphutil are the ones that actually load, we fail with an exception like "running arcanist in a different copy of arcanist is not supported".

This causes problems for Harbormaster, since we'd like to be able to run 'arc' in a copy of libphutil/ and have it execute unit tests for that copy rather than failing abruptly. So, if we detect that we're in arcanist/ or libphutil/, execute 'arc' again with the same arguments but force it to load the working copy in place of either the 'arcanist/' or the 'libphutil/' that it decided to load.

This is pretty much horrible black magic.

Test Plan: Ran 'arc list --trace' inside copies of libphutil/ and arcanist/ outside of the normal include chain. Saw it detect these, emit a message, and re-execute itself correctly.

Reviewers: btrahan, vrana

Reviewed By: vrana

CC: aran

Maniphest Tasks: T1049

Differential Revision: https://secure.phabricator.com/D4225
2012-12-17 16:35:03 -08:00
..
hgdaemon Delete license headers from files 2012-11-05 11:16:24 -08:00
lib Delete license headers from files 2012-11-05 11:16:24 -08:00
repository Use binary safe diff in arc diff 2012-07-03 13:33:28 -07:00
__init_script__.php Allow arc to be run in arcanist/ or libphutil/ 2012-12-17 16:35:03 -08:00
arcanist.php Allow arc to be run in arcanist/ or libphutil/ 2012-12-17 16:35:03 -08:00
breakout.py Use /usr/bin/env python 2012-09-06 19:13:57 -07:00
php_extension_classes.txt Include extension classes in the builtin list 2012-07-26 14:46:53 -07:00
php_extension_functions.txt Improve management of zlib dependency 2012-08-20 17:26:42 -07:00
phutil_rebuild_map.php Delete license headers from files 2012-11-05 11:16:24 -08:00
phutil_symbols.php Delete license headers from files 2012-11-05 11:16:24 -08:00
update_compat_info.php Delete license headers from files 2012-11-05 11:16:24 -08:00