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
F13051952: D15597.diff
Fri, Apr 19, 5:55 AM
Unknown Object (File)
Thu, Apr 11, 8:08 AM
Unknown Object (File)
Sun, Mar 24, 10:48 AM
Unknown Object (File)
Thu, Mar 21, 11:53 AM
Unknown Object (File)
Mar 13 2024, 6:51 AM
Unknown Object (File)
Feb 21 2024, 8:11 PM
Unknown Object (File)
Feb 14 2024, 7:00 AM
Unknown Object (File)
Feb 12 2024, 1:39 PM
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.