Summary:
- Historically, "--preview" was forbidden under SVN. No reason for that now.
- The "--auto" patch moved the "--preview" / "--only" checks later than they should be.
- Fix an issue with Conduit query construction in SVN.
Test Plan: Ran "arc diff --preview" in an SVN working copy. Ran "arc diff" in an SVN working copy.
Reviewers: svemir, btrahan, vrana, jungejason
Reviewed By: svemir
CC: aran
Differential Revision: https://secure.phabricator.com/D2218
$results = $conduit->callMethodSynchronous(
'differential.query',
$query + array(
- 'arcanistProjects' => $project,
+ 'arcanistProjects' => array($project),
));
foreach ($results as $key => $result) {
),
),
'preview' => array(
- 'supports' => array(
- 'git',
- ),
- 'nosupport' => array(
- 'svn' => 'Revisions are never created directly when using SVN.',
- ),
'help' =>
"Instead of creating or updating a revision, only create a diff, ".
"which you may later attach to a revision. This still runs lint ".
return true;
}
- if ($this->isHistoryImmutable()) {
- return true;
- }
-
return $this->getArgument('preview') ||
$this->getArgument('only');
}
* @task message
*/
private function buildCommitMessage() {
+ if ($this->getArgument('preview') || $this->getArgument('only')) {
+ return null;
+ }
+
$is_create = $this->getArgument('create');
$is_update = $this->getArgument('update');
$is_raw = $this->isRawDiffSource();