1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +01:00
phorge-arcanist/src/workflow
Alex Vandiver 129d51fa09 If the base commit for arc patch does not exist locally, try to fetch it
Summary:
If the commit does not exist locally, aborting still leaves
the user checked out on the branch.  In nearly all cases, all that is
necessary is a fetch -- but the branch must also be cleaned up.  This
leads to the pattern of:
```
arc patch D12345
[...base commit does not exist...]
^C
git checkout master
git branch -D arcpatch-D12345
git fetch
arc patch D12345
```

Solve this common problem by simply trying to fetch once if the commit does not
exist locally.

Test Plan: Ran `arc patch` on a recent diff.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D17949
2017-05-18 13:13:22 -04:00
..
exception pht all the things 2015-05-13 21:00:53 +10:00
ArcanistAliasWorkflow.php Read arc aliases from all available configuration files 2016-06-06 13:15:59 -07:00
ArcanistAmendWorkflow.php pht all the things 2015-05-13 21:00:53 +10:00
ArcanistAnoidWorkflow.php Don't explicitly name abstract base classes 2014-07-22 07:49:15 +10:00
ArcanistBackoutWorkflow.php Strip tips out of commit messages from arc backout 2016-04-02 07:26:02 -07:00
ArcanistBookmarkWorkflow.php Minor linter fixes 2015-05-15 07:09:30 +10:00
ArcanistBranchWorkflow.php Minor linter fixes 2015-05-15 07:09:30 +10:00
ArcanistBrowseWorkflow.php Properly URL encode branches in arc browse --branch ... 2016-03-04 15:52:58 -08:00
ArcanistCallConduitWorkflow.php Use phutil_json_decode instead of json_decode 2015-05-04 22:36:14 +10:00
ArcanistCloseRevisionWorkflow.php pht all the things 2015-05-13 21:00:53 +10:00
ArcanistCloseWorkflow.php Use PhutilInvalidStateException 2015-06-18 22:41:30 +10:00
ArcanistCommitWorkflow.php Various translation improvements 2015-11-02 21:31:04 +11:00
ArcanistCoverWorkflow.php Various translation improvements 2015-11-02 21:31:04 +11:00
ArcanistDiffWorkflow.php Fix a bad interaction between "arc diff --reviewers" and "the first line of a message is always a title" 2017-01-05 14:35:39 -08:00
ArcanistDownloadWorkflow.php Fix two minor issues with "arc download" 2017-04-28 07:45:25 -07:00
ArcanistExportWorkflow.php Remove call to "arcanist.projectinfo" from arc export 2015-05-25 18:31:09 +10:00
ArcanistFeatureWorkflow.php Improve performance of arc branch in Git with many branches 2016-04-16 16:39:32 -07:00
ArcanistFlagWorkflow.php Linter fixes 2015-12-07 21:35:34 +11:00
ArcanistGetConfigWorkflow.php pht all the things 2015-05-13 21:00:53 +10:00
ArcanistHelpWorkflow.php phtize a bunch more strings 2015-05-22 17:09:56 +10:00
ArcanistInstallCertificateWorkflow.php Added a warning prompt if the user tries to use an API cert instead of a CLI cert 2016-08-25 11:34:34 -04:00
ArcanistLandWorkflow.php Fix errors found by PHPStan 2017-02-18 09:24:19 +00:00
ArcanistLiberateWorkflow.php Minor linter fixes 2015-05-15 07:09:30 +10:00
ArcanistLintersWorkflow.php Add a table showing all XHPAST linter rules to the output of arc linters xhpast 2015-12-02 06:27:33 +11:00
ArcanistLintWorkflow.php Fix errors found by PHPStan 2017-02-16 13:54:43 +00:00
ArcanistListWorkflow.php Improve arc's handling of dirty submodules in Git 2015-09-21 12:40:06 -07:00
ArcanistPasteWorkflow.php pht all the things 2015-05-13 21:00:53 +10:00
ArcanistPatchWorkflow.php If the base commit for arc patch does not exist locally, try to fetch it 2017-05-18 13:13:22 -04:00
ArcanistPhrequentWorkflow.php Improve arc's handling of dirty submodules in Git 2015-09-21 12:40:06 -07:00
ArcanistRevertWorkflow.php pht all the things 2015-05-13 21:00:53 +10:00
ArcanistSetConfigWorkflow.php Add back pht()s and tsprintf()s to arg set-config 2017-02-16 11:08:45 +00:00
ArcanistShellCompleteWorkflow.php Fix arcanist shell completion 2015-06-19 13:15:44 +10:00
ArcanistStartWorkflow.php Fix errors found by PHPStan 2017-02-16 13:54:43 +00:00
ArcanistStopWorkflow.php Fix errors found by PHPStan 2017-02-16 13:54:43 +00:00
ArcanistTasksWorkflow.php Fix errors found by PHPStan 2017-02-16 13:54:43 +00:00
ArcanistTimeWorkflow.php Minor tidying of ArcanistPhrequentWorkflow classes 2015-02-01 21:49:53 +11:00
ArcanistTodoWorkflow.php pht all the things 2015-05-13 21:00:53 +10:00
ArcanistUnitWorkflow.php Fix errors found by PHPStan 2017-02-16 13:54:43 +00:00
ArcanistUpgradeWorkflow.php Improve two error handling behaviors in arc upgrade 2015-10-22 19:55:16 +00:00
ArcanistUploadWorkflow.php Various translation improvements 2015-11-02 21:31:04 +11:00
ArcanistVersionWorkflow.php pht all the things 2015-05-13 21:00:53 +10:00
ArcanistWhichWorkflow.php Make callsigns optional in arcanist 2016-03-15 03:58:46 +00:00
ArcanistWorkflow.php Fix errors found by PHPStan 2017-02-18 09:24:19 +00:00