]> khamidou — GitHub mirrors - arcanist.git/commit
Make 'arc diff X' in mercurial match git by using the GCA of X as the base
authordurham <durham@fb.com>
Fri, 8 Feb 2013 15:09:30 +0000 (07:09 -0800)
committerdurham <durham@fb.com>
Fri, 8 Feb 2013 15:09:30 +0000 (07:09 -0800)
commit4c35af92830b3962631c41cedaeea8bbe7278d42
tree2e1ca78d32a3679c3f156f1e932a097f62f3844e
parentdb053e1eb73f3749bd8cbddc6730c9da8b5eb1cb
Make 'arc diff X' in mercurial match git by using the GCA of X as the base

Summary:
Previously 'arc diff X' with mercurial meant to use X as the base
to diff against.  Now it means use gca(X,working directory) as the base to
diff against.  This matches the git behavior.

Test Plan:
Ran 'arc diff master' on a repo where master was ahead of the feature branch.
Verified that the diff result included only the diffs in the feature branch.

Reviewers: epriestley, sid0, bos, dschleimer

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4865
src/repository/api/ArcanistMercurialAPI.php
src/workflow/ArcanistDiffWorkflow.php