Page MenuHomePhabricator

D8757.id20763.diff
No OneTemporary

D8757.id20763.diff

diff --git a/src/applications/differential/editor/DifferentialTransactionEditor.php b/src/applications/differential/editor/DifferentialTransactionEditor.php
--- a/src/applications/differential/editor/DifferentialTransactionEditor.php
+++ b/src/applications/differential/editor/DifferentialTransactionEditor.php
@@ -1519,20 +1519,9 @@
DifferentialRevision $revision,
DifferentialDiff $diff) {
- $changesets = $diff->getChangesets();
-
- // TODO: This all needs to be modernized.
-
- $project = $diff->loadArcanistProject();
- if (!$project) {
- // Probably an old revision from before projects.
- return;
- }
-
- $repository = $project->loadRepository();
+ $repository = $revision->getRepository();
if (!$repository) {
- // Probably no project <-> repository link, or the repository where the
- // project lives is untracked.
+ // The repository where the code lives is untracked.
return;
}
@@ -1560,6 +1549,7 @@
}
}
+ $changesets = $diff->getChangesets();
$paths = array();
foreach ($changesets as $changeset) {
$paths[] = $path_prefix.'/'.$changeset->getFilename();

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 4, 7:12 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7729334
Default Alt Text
D8757.id20763.diff (1 KB)

Event Timeline