]> khamidou — GitHub mirrors - arcanist.git/commit
Added local encoding parameter for arc diff workflow
authorDavid Reuss <david@upsys.dk>
Thu, 1 Dec 2011 16:56:03 +0000 (08:56 -0800)
committerepriestley <git@epriestley.com>
Thu, 1 Dec 2011 16:56:03 +0000 (08:56 -0800)
commit1f69ab5fdb3742f950f116fb4dccdd9215f27d85
treea3e1275b5e4a8fa77ee3a29710a8fb9645be413e
parent99717090ef0f7146e6b6f90bf705623aff2627e2
Added local encoding parameter for arc diff workflow

Summary:
If any hunks is detected as non-utf8, and you've never submitted diffs
for a certain project before, you would get a ERR-BAD-ARCANIST-PROJECT
exception. This makes it possible to submit the patch properly, so you
can set the encoding in the interface afterwards. Further this fixes
cases where you don't supply a diff but will result in hunks getting
treated as binary, but that still beats the exception behaviour.

Test Plan:
Ran `arc diff` with and without the new --encoding param and
got the expected results. Also ensured the diff (with non utf-8 hunks)
would be properly created even when no encoding is specified.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley
Differential Revision: 1135
src/workflow/diff/ArcanistDiffWorkflow.php