Changes between Initial Version and Version 1 of Ticket #11777
- Timestamp:
- Oct 9, 2014, 6:25:24 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11777
- Property Owner set to
- Property Status new → assigned
-
Ticket #11777 – Description
initial v1 1 1 If searching changesets in cached git repository, the revisions are displayed with no changes. The issue doesn't occur if mercurial because search system requires `revision` table and mercurial connector doesn't support cache. 2 3 Both 0.12.x with th:GitPlugin and 1.0.x have this issue. 2 4 3 5 [[Image(search-changeset-raw-rev.png)]] … … 7 9 [[Image(search-changeset-display-rev.png)]] 8 10 11 Patch for 1.0-stable: 9 12 {{{#!diff 10 13 diff --git a/trac/versioncontrol/web_ui/changeset.py b/trac/versioncontrol/web_ui/changeset.py … … 25 28 cset = repos.resource.child('changeset', rev) 26 29 if 'CHANGESET_VIEW' in req.perm(cset): 27 + drev = repos.display_rev(rev) 30 + try: 31 + drev = repos.display_rev(rev) 32 + except NoSuchChangeset: 33 + continue 28 34 yield (req.href.changeset(rev, repos.reponame or None), 29 35 - '[%s]: %s' % (rev, shorten_line(log)),