i trying simulate creating diff request without creating repo, diff , doing arc diff.
i want use https://secure.phabricator.com/conduit/method/differential.createrawdiff/
or creatediff command. not sure should json ? how diff request sent on ? how fake create used curl request ?
any insights , appreciated ?
thanks much
this json used:
'{ "diff": "diff --git a/scripts/deploy/restart_apache b/scripts/deploy/restart_apache\nindex 510a7f9..d29177c 100755\n--- a/scripts/deploy/restart_apache\n+++ b/scripts/deploy/restart_apache\n@@ -59,7 +59,7 @@ do\n # set variables alpha context.\n webserverbasename='\''alpha-w'\''\n webserversuffix='\'''\''\n- numwebservers=1\n+ numwebservers=2\n checkport=80\n ;;\n \"beta\")" }'
you will, however, need use arcanist. not believe there way use api without using arcanist. yo don't need use arc diff
still need arcanist. command use through arcanist this:
echo $json_string | arc call-conduit --conduit-uri https://secure.phabricator.com/ --conduit-token $conduit_token differential.createrawdiff
Comments
Post a Comment