]> khamidou — GitHub mirrors - arcanist.git/commit
Fix "local commits" for Git and Mercurial to align with user expectations, and fix...
authorepriestley <git@epriestley.com>
Fri, 11 May 2012 20:52:14 +0000 (13:52 -0700)
committerepriestley <git@epriestley.com>
Fri, 11 May 2012 20:52:14 +0000 (13:52 -0700)
commita31fc544c8e4d379cbfb4d84207eefa890208ca3
treedb419db370f917e8bd485ce890c9406ff3cf9e3d
parente50ea62271a55e27c09c4b798995255155f0ef3e
Fix "local commits" for Git and Mercurial to align with user expectations, and fix a parsing bug

Summary:
  - "git log" still includes "\n", so we're currently generating nonsense hashes like "\nabd9879bab86ad78ab...".
  - Correct the log range we use in Git. See comment. When users perform merges, their expectations about what the "included commits" and what the included changes are are different. Represent them with two different ranges.
  - Same deal for Mercurial

Test Plan: Ran "arc which" in various contexts.

Reviewers: btrahan, aurelijus, Makinde

Reviewed By: Makinde

CC: aran, nh, jungejason
Maniphest Tasks: T873

Differential Revision: https://secure.phabricator.com/D2460
src/repository/api/git/ArcanistGitAPI.php
src/repository/api/git/__init__.php
src/repository/api/mercurial/ArcanistMercurialAPI.php