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
Unknown Object (File)
Wed, Dec 11, 5:20 AM
Unknown Object (File)
Wed, Dec 11, 1:46 AM
Unknown Object (File)
Mon, Dec 9, 2:10 PM
Unknown Object (File)
Wed, Dec 4, 5:18 AM
Unknown Object (File)
Mon, Nov 25, 1:52 AM
Unknown Object (File)
Fri, Nov 22, 1:07 PM
Unknown Object (File)
Nov 21 2024, 1:50 PM
Unknown Object (File)
Nov 17 2024, 2:51 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.