Page MenuHomePhabricator

get repository from Revision when rendering revision
AbandonedPublic

Authored by avivey on Jan 11 2014, 12:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 12:40 AM
Unknown Object (File)
Fri, Nov 22, 1:21 AM
Unknown Object (File)
Wed, Nov 20, 10:47 AM
Unknown Object (File)
Sat, Nov 16, 1:33 AM
Unknown Object (File)
Tue, Nov 12, 8:19 AM
Unknown Object (File)
Fri, Nov 8, 2:47 AM
Unknown Object (File)
Thu, Nov 7, 8:23 PM
Unknown Object (File)
Oct 15 2024, 4:02 AM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

one small step away from arcanist projects.

Test Plan

view some revisions; look for 'Browse in Diffusion' link.

Diff Detail

Branch
master
Lint
Lint Passed
Unit
Tests Passed

Event Timeline

This isn't quite correct: each diff in a revision may have a different repository, and this may be for good reasons. For example, maybe in diff 1 I make a change in Phabricator (repository "P"), but my reviewer suggests a simpler/better change fixing a deeper root cause in libphutil (repository "PHU"). I then update with a second diff from libphutil.

I think this use case is generally a good one, and having a single cohesive discussion around how to fix an issue -- even if that discussion spans multiple repositories -- is desirable.

In this case, the repository of $target -- which is a diff -- might not be the same as the repository of the revision.

There's also no $diff->getRepository() method right now, although there likely should be.

(So I think we need to wait for more infrastructure support before we can do this.)

Didn't think about that one... this just seemed like a low-hanging fruit.

The issue I was trying to hit was the case when a revision has a revision but no project, and for some reason the repo can't be inferred from the diff (Which I see happening, from time to time). Then the "browse" button doesn't show; It's easy to attach a repo to the revision, but not to the diff.

I guess this issue will more-or-less go away when the diff will be better at finding the repo.

Yeah, I think this should resolve itself once projects get de-emphasized. We should still revisit this callsite later and swap it over, but waiting for better infrastructure is probably cleanest.