]> khamidou — GitHub mirrors - arcanist.git/commit
Automatically detect when to mark revisions committed
authorepriestley <git@epriestley.com>
Tue, 27 Sep 2011 16:37:11 +0000 (09:37 -0700)
committerepriestley <git@epriestley.com>
Tue, 27 Sep 2011 18:06:02 +0000 (11:06 -0700)
commit2fd37a1728bdf8346c3c9ab0e9984b63372c3ed8
tree9be84e9ff986e79d8667612475bdf3c2bf47949a
parentfe5355e4e468f7cc9d45c565f74be22db453748b
Automatically detect when to mark revisions committed

Summary:
See D945. We have this kludgy "remote_hooks_installed" mess right now, but we
have enough information on the server nowadays to figure this out without it.

Also reduce code duplication by sharing the "mark-committed" workflow.

This causes "arc merge" to effect commit marks.

Test Plan:
In Git, Mercurial and SVN working copies ran like a million
amend/merge/commit/mark-committed commands with and without --finalize in
various states of revision completion.

This change is really hard to exhaustively test because of the number of
combinations of VCS, revision state, command, command flags, repository state
and tracking state. All the reasonable tests I could come up with worked
correctly, though.

Reviewers: Makinde, jungejason, nh, tuomaspelkonen, aran

Reviewed By: jungejason

CC: aran, jungejason
Differential Revision: 967
.arcconfig
src/repository/api/subversion/ArcanistSubversionAPI.php
src/workflow/amend/ArcanistAmendWorkflow.php
src/workflow/commit/ArcanistCommitWorkflow.php
src/workflow/git-hook-pre-receive/ArcanistGitHookPreReceiveWorkflow.php
src/workflow/mark-committed/ArcanistMarkCommittedWorkflow.php
src/workflow/merge/ArcanistMergeWorkflow.php