~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/revision_ui.py

  • Committer: Matt Nordhoff
  • Date: 2010-05-05 19:03:40 UTC
  • Revision ID: mnordhoff@mattnordhoff.com-20100505190340-szon1h02xlwn6dzl
Fix bad redirect when visiting "/download" or "/download/". (#247992)

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        h.add_branch_nicks(change)
97
97
 
98
98
        if '.' in change.revno:
99
 
            # Walk "down" though the merge-sorted graph until we find a
 
99
            # Walk "up" though the merge-sorted graph until we find a
100
100
            # revision with merge depth 0: this is the revision that merged
101
101
            # this one to mainline.
102
102
            ri = self._history._rev_info
103
103
            i = self._history._rev_indices[change.revid]
104
104
            while ri[i][0][2] > 0:
105
 
                i += 1
 
105
                i -= 1
106
106
            merged_in = ri[i][0][3]
107
107
        else:
108
108
            merged_in = None