]> khamidou — GitHub mirrors - arcanist.git/commit
When a mercurial working copy has uncommitted changes, prompt to include them in...
authorepriestley <git@epriestley.com>
Tue, 20 Mar 2012 02:17:10 +0000 (19:17 -0700)
committerepriestley <git@epriestley.com>
Tue, 20 Mar 2012 02:17:10 +0000 (19:17 -0700)
commit31a54d9b4a31e33fcbcdfe84ae10be42e9a250bb
tree6db83c72b8fec06c570d440380d5633f165e27a9
parentb076b1c02a9f221baf8ed0c4e5e6306dbdcbb670
When a mercurial working copy has uncommitted changes, prompt to include them in "arc diff"

Summary:
See task. Allow mercurial users to diff with uncommitted changes.

  - By default, commit range is merge-base of `hg outgoing` to `.` (dirstate).
  - You can get JUST dirstate with `arc diff tip` or similar.
  - This ended up being a giant mess various other changes to deal with empty `hg outgoing` and empty dirstate.

Test Plan: Diffed with uncommitted changes, got sensible prompts and results.

Reviewers: Makinde, btrahan

Reviewed By: btrahan

CC: aran, epriestley
Maniphest Tasks: T998

Differential Revision: https://secure.phabricator.com/D1954
src/__phutil_library_map__.php
src/exception/usage/uncommittedchanges/ArcanistUncommittedChangesException.php [new file with mode: 0644]
src/exception/usage/uncommittedchanges/__init__.php [new file with mode: 0644]
src/repository/api/mercurial/ArcanistMercurialAPI.php
src/repository/api/mercurial/__init__.php
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/base/__init__.php
src/workflow/diff/ArcanistDiffWorkflow.php