Page MenuHomePhabricator

Fix arc on windows not working with proc_open
Needs ReviewPublic

Authored by paladox on Apr 3 2016, 7:19 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Switch functions fetchTarget and pushChange from execPassthru to execxLocal

Reason because it kept failing with this error

$ arc land
Landing current branch 'master'.
TARGET Landing onto "master", selected by following tracking branches upstream to the closest remote.
REMOTE Using remote "origin", selected by following tracking branches upstream to the closest remote.
FETCH Fetching origin/master...
Exception
Failed to passthru proc_open(): proc_open(): CreateProcess failed, error code - 87
(Run with --trace for a full exception trace.)

When running arc diff or arc land

With this fix applied to be able to do arc land you have to do arc diff first then arc land or else
you will get the revision does not exist.

Change-Id: Id5dea5237f92808b7864382da1ed28d06724e731

Test Plan

Do not use proc_open for now for arc land.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

paladox updated this revision to Diff 37590.Apr 3 2016, 7:19 PM
paladox retitled this revision from to Fix arc on windows not working with proc_open.
paladox updated this object.
paladox edited the test plan for this revision. (Show Details)

Unit tests failed because they used the make command on windows that is not supported yet but soon Ubuntu will be available on windows so we will be able to use that command hopefully.

paladox edited edge metadata.Apr 3 2016, 7:20 PM
paladox added subscribers: 20after4, chad.
epriestley removed subscribers: chad, epriestley.
paladox updated this revision to Diff 37598.Apr 3 2016, 9:45 PM
paladox removed rARC Arcanist as the repository for this revision.
paladox set the repository for this revision to rARC Arcanist.Apr 3 2016, 10:08 PM