Page MenuHomePhabricator

Fix an issue with pulling Subversion blame data
ClosedPublic

Authored by epriestley on Nov 7 2013, 4:15 PM.
Tags
None
Referenced Files
F18350972: D7523.id.diff
Tue, Aug 26, 8:48 PM
F18348653: D7523.diff
Tue, Aug 26, 5:12 PM
F18098089: D7523.diff
Aug 8 2025, 6:29 PM
F18024824: D7523.id.diff
Aug 2 2025, 9:30 PM
F17869839: D7523.diff
Jul 28 2025, 12:23 PM
F17848599: D7523.id16968.diff
Jul 27 2025, 7:35 AM
F17837064: D7523.diff
Jul 26 2025, 4:53 PM
F17804626: D7523.diff
Jul 25 2025, 11:38 AM
Subscribers

Details

Summary

Fixes T4067. The way DiffusionCommitQuery works prevents it from loading SVN identifiers in some cases without additional constraints, since "12345" might be an SVN revision 12345, or it might be the first 5 characters of a Git commit hash.

Introduce withRepository() as a shorthand for withDefaultRepository() + withRepositoryIDs(). This tells the query to:

  • Only look in the given repository; and
  • use the more liberal identifier resolution rules while doing so.

The practical impact this has is that blame tooltips in SVN work again. The other queries which are fixed here were never run in SVN (which doesn't have first-class branches or tags); I've cleaned them up only for completeness.

Test Plan
  • Viewed blame in SVN, saw information again instead of empty tooltip.
  • Viewed brnaches/tags in Mercurial and Git.

{F79226}

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped