]> khamidou — GitHub mirrors - arcanist.git/commit
make arc patch issue a warning if applying a patch against a different project
authorBob Trahan <bob.trahan@gmail.com>
Wed, 30 Nov 2011 06:27:40 +0000 (22:27 -0800)
committerBob Trahan <bob.trahan@gmail.com>
Thu, 1 Dec 2011 17:44:55 +0000 (09:44 -0800)
commitd81d97f9c608d2e7585e6505a5b9d196ba2522bf
treea4de7792542334ceae0a83496686fda9c237e6b4
parent1f69ab5fdb3742f950f116fb4dccdd9215f27d85
make arc patch issue a warning if applying a patch against a different project

Summary: adds a little bit of sanity checking to the arc patch workflow.  in
short, if the working copy project is not the same as the patch project, don't
apply the patch

Test Plan:
ran

arc patch DX
arc patch DX --force

in the top line directory for project A and proejct B.   DX is for project A.

verified for project A that the patch was applied and for project B i was issued
warnings as expected.  also verified in project B case that saying Y or N to the
warning had the desired effect.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, btrahan, epriestley
Differential Revision: 1140
src/parser/bundle/ArcanistBundle.php
src/workflow/base/ArcanistBaseWorkflow.php
src/workflow/export/ArcanistExportWorkflow.php
src/workflow/patch/ArcanistPatchWorkflow.php