1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-09 00:12:40 +01:00
phorge-arcanist/scripts
epriestley a7376624b4 Allow arc to identify repositories without "project_id"
Summary:
Ref T4343. Continues the process of reducing the prominence of Arcanist Projects. Primarily:

  - Query Phabricator to identify the working copy based on explicit configuration, or guess based on heuristics.
  - Enhance `arc which` to explain the process to the user.
  - The `project_id` key is no longer required in `.arcconfig`.

Minor/cleanup changes:

  - Rename `project_id` to `project.name` (consistency, clarity).
  - Rename `conduit_uri` to `phabricator.uri` (consistency, clairty).
  - These both need documentation updates.
  - Add `repository.callsign` to explicitly bind to a repository.
  - Updated `.arcconfig` for the new values.
  - Fix a unit test which broke a while ago when we fixed a rare definition of "unstaged".
  - Make `getRepositoryUUID()` generic so we can get rid of one `instanceof`.

Test Plan:
  - Ran `arc which`.
  - Ran `arc diff`.
  - This doesn't really change anything, so the only real risk is version compatibility breaks. This //does// introduce such a break, but the window is very narrow: if you upgrade `arc` after this commit, and try to diff against a Phabricator which was updated after yesterday (D8068) but before D8072 lands, the lookup will work so we'll add `repositoryPHID` to the `differential.creatediff` call, but it won't exist in Phabricator yet. This window is so narrow that I'm not going to try to fix it, as I'd guess there is a significant chance that no users will be affected. I don't see a clever way to fix it that doesn't involve a lot of work, either.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4343

Differential Revision: https://secure.phabricator.com/D8073
2014-01-26 15:31:30 -08:00
..
hgdaemon Delete license headers from files 2012-11-05 11:16:24 -08:00
lib Remove spurious +x from arcanist 2013-10-05 05:20:05 -07:00
repository Use binary safe diff in arc diff 2012-07-03 13:33:28 -07:00
__init_script__.php Pluralize add files questions 2013-09-14 08:06:50 -07:00
arcanist.php Allow arc to identify repositories without "project_id" 2014-01-26 15:31:30 -08:00
breakout.py Use /usr/bin/env python 2012-09-06 19:13:57 -07:00
php_extension_classes.txt Recognize ZipArchive as an extension class 2014-01-02 17:08:48 -08:00
php_extension_functions.txt List the openssl functions as extension functions for lint 2013-04-04 16:17:19 -07:00
phutil_rebuild_map.php Delete license headers from files 2012-11-05 11:16:24 -08:00
phutil_symbols.php Find needed classes in catch, instanceof and newv() 2013-06-06 07:25:08 -07:00
update_compat_info.php Update PHP compat info 2013-05-22 11:36:41 -07:00