Page MenuHomePhabricator

Fix arc on windows not working with proc_open
Needs ReviewPublic

Authored by paladox on Apr 3 2016, 7:19 PM.
Tags
None
Referenced Files
F14058800: D15597.diff
Sun, Nov 17, 2:51 PM
F14044696: D15597.diff
Tue, Nov 12, 7:44 PM
F14042979: D15597.id37598.diff
Tue, Nov 12, 7:09 AM
F14039876: D15597.id37598.diff
Mon, Nov 11, 6:34 AM
F14030009: D15597.id37598.diff
Fri, Nov 8, 10:59 PM
F13998740: D15597.id37590.diff
Thu, Oct 24, 10:56 AM
Unknown Object (File)
Oct 9 2024, 3:21 AM
Unknown Object (File)
Sep 21 2024, 12:59 AM
Subscribers
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
Tests Skipped

Event Timeline

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 removed rARC Arcanist as the repository for this revision.