]> khamidou — GitHub mirrors - arcanist.git/commit
Allow 'arc' to run without '.arcconfig'
authorepriestley <git@epriestley.com>
Mon, 7 May 2012 22:24:58 +0000 (15:24 -0700)
committerepriestley <git@epriestley.com>
Mon, 7 May 2012 22:24:58 +0000 (15:24 -0700)
commit5c684594d4d1a875a857cd267fff32f76937a61b
treed40da200c60688b34519cb70072d31933daf573d
parent9063cfbdba059c08876dc971ed0e259c07503b06
Allow 'arc' to run without '.arcconfig'

Summary:
This is mostly an onboarding thing, but also allows "arc upload", "arc download", and "arc paste" to work anywhere on the system.

  - Try to read the Phabricator install URI from arc global config if we can't find ".arcconfig".
  - Build a WorkingCopy anyway if we can't find ".arcconfig", as long as we can find ".svn", ".git", or ".hg".
  - Make all the workflows handle "no project ID" at least somewhat gracefully.

Test Plan:
  - Ran "arc diff" in .arcconfig-less Mercurial, Git, and Subversion working copies.
  - Ran "arc upload" and "arc download" from my desktop.
  - Ran "arc paste" from somewhere random.
  - Cleared my config and hit the error, got useful instructions.

Reviewers: btrahan, csilvers

Reviewed By: csilvers

CC: aran
Differential Revision: https://secure.phabricator.com/D2424
scripts/arcanist.php
src/repository/api/subversion/ArcanistSubversionAPI.php
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/close-revision/ArcanistCloseRevisionWorkflow.php
src/workflow/get-config/ArcanistGetConfigWorkflow.php
src/workflow/set-config/ArcanistSetConfigWorkflow.php
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php