forked from phacility/arcanist
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for running arc patch on Windows with SVN
- Loading branch information
Showing
2 changed files
with
51 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b728af9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these changes. The arc patch utility works after this.
b728af9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when I use the patch for latest arcanist in https://github.com/phacility/arcanist
This is my fork link https://github.com/ljian-1989/arcanist/commit/6c6124368a3aa5d7c3077d96e613e766f0f4571b
when I use the arc patch on windows
I get this error like below:
PS D:\workspace\code\tmp\test> arc --trace patch D12
ARGV "D:\programs\arcanist\bin..\scripts\arcanist.php" "--trace" "patch" "D12"
LOAD Loaded "phutil" from "D:\programs\libphutil\src".
LOAD Loaded "arcanist" from "D:\programs\arcanist\src".
Config: Reading user configuration file "C:\Users\liujj\AppData\Roaming/.arcrc"...
Config: Did not find system configuration at "C:\ProgramData\Phabricator/Arcanist/config".
Working Copy: Reading .arcconfig from "D:\workspace\code\tmp\test/.arcconfig".
Working Copy: Path "D:\workspace\code\tmp\test" is part of svn working copy "D:\workspace\code\tmp\test".
Working Copy: Project root is at "D:\workspace\code\tmp\test".
Config: Did not find local configuration at "D:\workspace\code\tmp\test.svn\arc/config".
[0] (+0) http://phabricator.com/api/differential.querydiffs
<<< [0] (+285) 285,370 us
[1] (+285) http://phabricator.com/api/user.whoami
<<< [1] (+396) 110,209 us
[2] (+396) http://phabricator.com/api/differential.querydiffs
<<< [2] (+559) 163,321 us
[3] (+562) http://phabricator.com/api/repository.query
<<< [3] (+670) 108,146 us
[4] (+672) $ svn --xml status
<<< [4] (+1,346) 673,614 us
[5] (+1,350) $ patch -p0 -i "C:\Users\liujj\AppData\Local\Temp\3441il6nt7cw8ck0\2129C98.tmp"
[2019-05-09 04:28:10] EXCEPTION: (Exception) Failed to passthru proc_open(): proc_open(): CreateProcess failed, error code - 2 at [\src\future\exec\PhutilExecPassthru.php:103]
arcanist(head=master, ref.master=9830c9316d38), phutil(head=master, ref.master=70ac0d66e300)
#0 PhutilExecPassthru::execute() called at [\src\workflow\ArcanistPatchWorkflow.php:621]
phacility#1 ArcanistPatchWorkflow::run() called at [\src\workflow\ArcanistPatchWorkflow.php:398]
phacility#2 ArcanistPatchWorkflow::run() called at [\scripts\arcanist.php:394]
b728af9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I finally find the reason which case this problems. Because the patch.exe is not in PATH.
After I join the "C:\Git\usr\bin" to PATH, it is solved