Edgewall Software

Changes between Initial Version and Version 1 of Ticket #11777


Ignore:
Timestamp:
Oct 9, 2014, 6:25:24 PM (6 years ago)
Author:
Jun Omae
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11777

    • Property Owner set to Jun Omae
    • Property Status newassigned
  • Ticket #11777 – Description

    initial v1  
    11If 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
     3Both 0.12.x with th:GitPlugin and 1.0.x have this issue.
    24
    35[[Image(search-changeset-raw-rev.png)]]
     
    79[[Image(search-changeset-display-rev.png)]]
    810
     11Patch for 1.0-stable:
    912{{{#!diff
    1013diff --git a/trac/versioncontrol/web_ui/changeset.py b/trac/versioncontrol/web_ui/changeset.py
     
    2528                 cset = repos.resource.child('changeset', rev)
    2629                 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
    2834                     yield (req.href.changeset(rev, repos.reponame or None),
    2935-                           '[%s]: %s' % (rev, shorten_line(log)),