]> khamidou — GitHub mirrors - arcanist.git/commit
Support mutable history in mercurial for arc diff and arc amend
authorJamie Wong <jamie.lf.wong@gmail.com>
Mon, 4 Jun 2012 19:30:50 +0000 (15:30 -0400)
committerJamie Wong <jamie.lf.wong@gmail.com>
Thu, 7 Jun 2012 19:29:24 +0000 (15:29 -0400)
commit1ea5e7e9cffeb8226a7bfb2a765692f31b1b39d4
tree12210d44fba2fbe8fd7dfa62afa2a58b79e92930
parent6f6fde84cc530c2b51f095d9636b9e15301519a1
Support mutable history in mercurial for arc diff and arc amend

Summary:
This adds basic support for mutable history for arc diff and arc amend for
mercurial. This is purely opt-in (so it shouldn't affect anyone who doesn't want
this feature) by explicitly setting

    "immutable_history" : false

in arc configuration.

This also fixes another instance of weird behaviour for multiple heads - the
first instance was fixed here:
https://github.com/facebook/arcanist/pull/28

Test Plan:
without "immutable_history" turned on)>

When ##arc diff## produces an update diff, it should list only commits that are
ancestors of the current revision - not ones from other heads.

Reviewers: epriestley

CC: csilvers, aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2654
src/repository/api/ArcanistGitAPI.php
src/repository/api/ArcanistMercurialAPI.php
src/repository/api/ArcanistRepositoryAPI.php
src/repository/api/ArcanistSubversionAPI.php
src/workflow/ArcanistAmendWorkflow.php
src/workflow/ArcanistBaseWorkflow.php
src/workflow/ArcanistDiffWorkflow.php