]> khamidou — GitHub mirrors - arcanist.git/commit
Fix an issue where 'arc alias' reverses parameters
authorepriestley <git@epriestley.com>
Wed, 8 Aug 2012 19:58:27 +0000 (12:58 -0700)
committerepriestley <git@epriestley.com>
Wed, 8 Aug 2012 19:58:27 +0000 (12:58 -0700)
commit678efa44c62afad9353cf3a432773dd5927d961f
tree79e90c5b8b7d40be9c5a065087ed69c738428980
parent1ea9b8b02c19d0621675c6a10292d91f30d8e46d
Fix an issue where 'arc alias' reverses parameters

Summary:
We shove alias parameters onto the front of the arg list so if you make an alias like "qdiff" = "diff x y z" and then run "qdiff a b c", we end up with "diff x y z a b c". However, currently we reverse alias parameters, so you actually get "diff z y x a b c".

This is a problem for `arc alias bdiff -- diff --background 1`, which evaluates to `arc diff 1 --background` and fails.

Test Plan: Created a `bdiff` alias and ran it successfully.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran
Differential Revision: https://secure.phabricator.com/D3196
src/workflow/ArcanistAliasWorkflow.php