]> khamidou — GitHub mirrors - arcanist.git/commit
Remove ArcanistRepositoryAPI::setDefaultBaseCommit()
authorepriestley <git@epriestley.com>
Mon, 17 Dec 2012 20:53:38 +0000 (12:53 -0800)
committerepriestley <git@epriestley.com>
Mon, 17 Dec 2012 20:53:38 +0000 (12:53 -0800)
commit2ae0cb797da57fbfd940671fef612b4d1edbd0fe
tree5b9b93ca36589eacf263b255f63cc3f8144e71e6
parent0e27dbfd17a4587daf8645170eab6b7a83a28336
Remove ArcanistRepositoryAPI::setDefaultBaseCommit()

Summary:
This method is used in three cases:

  # For unit tests, to set the range to 'HEAD^' or '.^' in an agnostic way.
  # For "amend", to set the range to the commit to be amended (also 'HEAD^' or '.^').
  # For "patch" and "upgrade" so we don't fail just because there's an invalid "base" rule somewhere in the config when doing clean-working-copy tests.

For cases (1) and (2), introduce an "arc:this" rule to mean "the current commit". For case (3), remove the call; it is no longer necessary to check the commit range in order to do tests for the working copy state after D4095.

Test Plan: Ran unit tests, "arc upgrade", "arc patch", "arc amend".

Reviewers: vrana

Reviewed By: vrana

CC: aran
Differential Revision: https://secure.phabricator.com/D4096
src/parser/ArcanistBaseCommitParser.php
src/parser/__tests__/ArcanistBundleTestCase.php
src/repository/api/ArcanistGitAPI.php
src/repository/api/ArcanistMercurialAPI.php
src/repository/api/ArcanistRepositoryAPI.php
src/repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php
src/workflow/ArcanistAmendWorkflow.php
src/workflow/ArcanistPatchWorkflow.php
src/workflow/ArcanistUpgradeWorkflow.php