]> khamidou — GitHub mirrors - arcanist.git/commit
Add an "arc merge" workflow
authorepriestley <git@epriestley.com>
Thu, 25 Aug 2011 23:02:03 +0000 (16:02 -0700)
committerepriestley <git@epriestley.com>
Thu, 15 Sep 2011 14:42:45 +0000 (07:42 -0700)
commit44959afd4b88b5d3d283d1fec62452251343ed26
tree312cae21079d51d71b691a445e37865361d6cfb1
parent31ec0119225a0556cf53f2c16d1f30337f9e1eaa
Add an "arc merge" workflow

Summary:
This should support conservative rewrite policies in git fairly well, under an
assumed workflow of:

  - Develop in local branches, never rewrite history.
  - Commit with "-m" or by typing a brief, non-template commit message
describing the checkpoint.
  - Provide rich information in the web console (reviewers, etc.)
  - Finalize with "git checkout master && arc merge branch && git push" or some
flavor thereof.

This supports Mercurial somewhat. The major problem is that "hg merge" fails if
the local is a fastforward of the remote, at which point there's nowhere we can
throw the commit message. Oh well. Just push it and we'll do our best to link
them up based on local commit info.

I am increasingly forming an opinion that Mercurial is "saftey-scissors git".
But also maybe I have no clue what I'm doing. I just don't understand why anyone
would think it's a good idea to have a trunk consisting of ~50% known-broken
revisions, random checkpoint parts, whitespace changes, typo fixes, etc. If you
use git with branching you can avoid this by making a trunk out of merges or
with rebase/amend, but there seems to be no way to have "one commit = one idea"
in any real sense in Mercurial.

Test Plan: Execute "arc merge" in git and mercurial.

Reviewers: fratrik, Makinde, aran, jungejason, tuomaspelkonen

Reviewed By: Makinde

CC: aran, epriestley, Makinde
Differential Revision: 860
src/__phutil_library_map__.php
src/repository/api/base/ArcanistRepositoryAPI.php
src/repository/api/base/__init__.php
src/repository/api/git/ArcanistGitAPI.php
src/repository/api/mercurial/ArcanistMercurialAPI.php
src/repository/api/subversion/ArcanistSubversionAPI.php
src/workflow/exception/notsupported/ArcanistCapabilityNotSupportedException.php [new file with mode: 0644]
src/workflow/exception/notsupported/__init__.php [new file with mode: 0644]
src/workflow/merge/ArcanistMergeWorkflow.php [new file with mode: 0644]
src/workflow/merge/__init__.php [new file with mode: 0644]