mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Ship up repository UUIDs with diffs.
This commit is contained in:
parent
1139eb1a73
commit
ceb8a42003
2 changed files with 22 additions and 0 deletions
|
@ -472,4 +472,9 @@ EODIFF;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getRepositorySVNUUID() {
|
||||||
|
$info = $this->getSVNInfo('/');
|
||||||
|
return $info['Repository UUID'];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,6 +253,7 @@ EOTEXT
|
||||||
// the SVN effective base revision.
|
// the SVN effective base revision.
|
||||||
$base_revision = $repository_api->getSourceControlBaseRevision();
|
$base_revision = $repository_api->getSourceControlBaseRevision();
|
||||||
$base_path = $repository_api->getSourceControlPath();
|
$base_path = $repository_api->getSourceControlPath();
|
||||||
|
$repo_uuid = null;
|
||||||
if ($repository_api instanceof ArcanistGitAPI) {
|
if ($repository_api instanceof ArcanistGitAPI) {
|
||||||
$info = $this->getGitParentLogInfo();
|
$info = $this->getGitParentLogInfo();
|
||||||
if ($info['parent']) {
|
if ($info['parent']) {
|
||||||
|
@ -264,8 +265,15 @@ EOTEXT
|
||||||
if ($info['base_path']) {
|
if ($info['base_path']) {
|
||||||
$base_path = $info['base_path'];
|
$base_path = $info['base_path'];
|
||||||
}
|
}
|
||||||
|
if ($info['uuid']) {
|
||||||
|
$repo_uuid = $info['uuid'];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$repo_uuid = $repository_api->getRepositorySVNUUID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$working_copy = $this->getWorkingCopy();
|
||||||
|
|
||||||
$diff = array(
|
$diff = array(
|
||||||
'changes' => $change_list,
|
'changes' => $change_list,
|
||||||
'sourceMachine' => php_uname('n'),
|
'sourceMachine' => php_uname('n'),
|
||||||
|
@ -278,6 +286,11 @@ EOTEXT
|
||||||
'parentRevisionID' => $parent,
|
'parentRevisionID' => $parent,
|
||||||
'lintStatus' => $lint,
|
'lintStatus' => $lint,
|
||||||
'unitStatus' => $unit,
|
'unitStatus' => $unit,
|
||||||
|
|
||||||
|
'repositoryUUID' => $repo_uuid,
|
||||||
|
'creationMethod' => 'arc',
|
||||||
|
'arcanistProject' => $working_copy->getProjectID(),
|
||||||
|
'authorPHID' => $this->getUserGUID(),
|
||||||
);
|
);
|
||||||
|
|
||||||
$diff_info = $conduit->callMethodSynchronous(
|
$diff_info = $conduit->callMethodSynchronous(
|
||||||
|
@ -878,6 +891,7 @@ EOTEXT
|
||||||
'parent' => null,
|
'parent' => null,
|
||||||
'base_revision' => null,
|
'base_revision' => null,
|
||||||
'base_path' => null,
|
'base_path' => null,
|
||||||
|
'uuid' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
$conduit = $this->getConduit();
|
$conduit = $this->getConduit();
|
||||||
|
@ -903,6 +917,9 @@ EOTEXT
|
||||||
$info['base_revision'] = $message->getGitSVNBaseRevision();
|
$info['base_revision'] = $message->getGitSVNBaseRevision();
|
||||||
$info['base_path'] = $message->getGitSVNBasePath();
|
$info['base_path'] = $message->getGitSVNBasePath();
|
||||||
}
|
}
|
||||||
|
if ($message->getGitSVNUUID()) {
|
||||||
|
$info['uuid'] = $message->getGitSVNUUID();
|
||||||
|
}
|
||||||
if ($info['parent'] && $info['base_revision']) {
|
if ($info['parent'] && $info['base_revision']) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue