]> khamidou — GitHub mirrors - arcanist.git/commit
Add 'arc which', and
authorepriestley <git@epriestley.com>
Tue, 24 Jan 2012 16:07:38 +0000 (08:07 -0800)
committerepriestley <git@epriestley.com>
Tue, 24 Jan 2012 17:47:53 +0000 (09:47 -0800)
commit3ee01bacac390e16fe313719a86e6b1a050d0076
treefb0a6e46e03c9fa5d4e7d38af084eef1723b85b9
parent03a9c516eaa25ff1dd4d300f8b56762b64ccf5ed
Add 'arc which', and
ArcanistRepositoryAPI->loadWorkingCopyDifferentialRevisions()

Summary:
  - See T787.
  - @cpiro has an immediate use case for this, which is ##arc amend --revision
`arc which --id` --show master## for "git merge --autosquash" or similar.
  - For T614, we need this to choose "--create" vs "--update".
  - Other workflows should also use this to improve how often we automatically
get things right, particularly in Mercurial and SVN.

Test Plan:
Ran "arc which" in SVN, Git and HG working copies with various flags;
results seemed reasonable.

Reviewers: btrahan, cpiro, jungejason

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T787

Differential Revision: https://secure.phabricator.com/D1478
src/__phutil_library_map__.php
src/repository/api/base/ArcanistRepositoryAPI.php
src/repository/api/git/ArcanistGitAPI.php
src/repository/api/git/__init__.php
src/repository/api/mercurial/ArcanistMercurialAPI.php
src/repository/api/subversion/ArcanistSubversionAPI.php
src/workflow/which/ArcanistWhichWorkflow.php [new file with mode: 0644]
src/workflow/which/__init__.php [new file with mode: 0644]