mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 14:00:55 +01:00
No description
a1a25f72f5
Summary: under git, we now create a branch that is at the patch's base revision if we know it or whatever the working copy happened to be at if we don't. This diff also adds the --nobranch flag to disable this new behavior. Also added an --update flag. When specified, we run the appropriate "update" command in the VCS. By default this is off. Finally, tried to give the user more information about what the heck arc just did to their working copy. Test Plan: // verify --update flag works // -- git Assume we are at HEAD and we got to HEAD from HEAD^1 via DX git reset --hard <THE BEGINNING> arc patch --update DX // ...versus svn Assume we are at HEAD and we got to HEAD from HEAD^1 via DX svn checkout -r 1 arc patch --update DX // ...versus hg Assume we are at HEAD and we got to HEAD from HEAD^1 via DX hg update -r 1 arc patch --update DX // verify under git a nice branch is made // -- test where we should get a good name // -- test where we have a base revision to check out the branch at Assume we are at HEAD and we got to HEAD from HEAD^1 via DX git reset --hard HEAD^1 arc patch DX // verify under git an "okay" branch is made if we can't get "nice" // -- test where we should get a "bad" name // -- test where we DON'T have a base revision to check out the branch at git diff HEAD^1 > ~/example.patch git reset --hard HEAD^1 arc patch --patch ~/example.patch // verify --nobranch flag skips the test for git Assume we are at HEAD and we got to HEAD from HEAD^1 via DX git reset --head HEAD^1 arc patch --nobranch DX Reviewers: epriestley Reviewed By: epriestley CC: aran Maniphest Tasks: T479 Differential Revision: https://secure.phabricator.com/D1459 |
||
---|---|---|
bin | ||
externals | ||
resources | ||
scripts | ||
src | ||
.arcconfig | ||
.divinerconfig | ||
.gitignore | ||
LICENSE | ||
README |
WHAT IS ARCANIST? Arcanist is the command-line tool for Phabricator. It allows you to interact with Phabricator installs to send code for review, download patches, transfer files, view status, make API calls, and various other things. You can find a complete user guide here: http://www.phabricator.com/docs/phabricator/article/Arcanist_User_Guide.html For more information about Phabricator, see: http://phabricator.org/