]> khamidou — GitHub mirrors - arcanist.git/commit
Add an "--auto" flag to arc diff to activate heuristics
authorepriestley <git@epriestley.com>
Mon, 20 Feb 2012 20:51:01 +0000 (12:51 -0800)
committerepriestley <git@epriestley.com>
Mon, 20 Feb 2012 20:51:01 +0000 (12:51 -0800)
commit506e795fdac80b72578db3042b5d6bb3bdca3322
tree51e1bbfec5b57f59ab9f375c9e9ac4f4a48343cb
parent298ed9cda55d90b755e4dc45d202213e91631888
Add an "--auto" flag to arc diff to activate heuristics

Summary:
For some workflows (all Mercurial, all SVN, some git) I eventually want arc to
pick between "arc --create" and "arc --update" automatically.

"arc which" laid the groundwork for this. For now, implement it as an optional
flag because I think there are still some rough edges on this pathway (for
example, handling of commit messages when errors happen).

When 'arc diff --auto' is invoked, guess whether the user meant --create or
--update.

Test Plan: Created this revision with 'arc diff --auto'.

Reviewers: Makinde, btrahan

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T614

Differential Revision: https://secure.phabricator.com/D1648
src/workflow/diff/ArcanistDiffWorkflow.php