]> khamidou — GitHub mirrors - arcanist.git/commit
Make arc patch be less ROFL for mercurial
authorBob Trahan <bob.trahan@gmail.com>
Tue, 17 Jan 2012 01:12:34 +0000 (17:12 -0800)
committerBob Trahan <bob.trahan@gmail.com>
Tue, 17 Jan 2012 17:40:43 +0000 (09:40 -0800)
commit6c613292f7d580234470e3d4e8e211f7a739a326
treeafae54d2b4dce3a7df63ac3da08db346cc79b277
parentc5dfa34f1055804f9fa6b72d14945eab1e58fc42
Make arc patch be less ROFL for mercurial

Summary:
pretty easy stuff as mercurial accepts git style patches...!

also fixed two issues where we were 1) storing the short hash and 2) storing it
with a trailing "\n".  This diff makes us store the full hash AND no trailing
return character

Test Plan:
in my mercurial repo
<note repo at revision $foo>
<did something dumb>
hg commit -m "something dumb"
arc diff
<go to web and fill out stuff for DX>
hg checkout $foo
arc patch DX
<verify patch DX successfully applied!>

use conduit console to verify a few diffs were returning the correct full
revision hash with a trailing \n

Reviewers: epriestley

Reviewed By: epriestley

CC: aran
Maniphest Tasks: T630

Differential Revision: https://secure.phabricator.com/D1431
src/repository/api/mercurial/ArcanistMercurialAPI.php
src/workflow/patch/ArcanistPatchWorkflow.php