/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/diffwin.py

  • Committer: Aaron Bentley
  • Date: 2006-06-19 18:22:00 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060619182200-30d70fc0f6f0b4fd
Accept either side of a rename for DiffWindow.set_file

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
            titer = self.model.append(None, [ "Renamed", None ])
128
128
            for oldpath, newpath, id, kind, text_modified, meta_modified \
129
129
                    in delta.renamed:
130
 
                self.model.append(titer, [ oldpath, oldpath ])
 
130
                self.model.append(titer, [ oldpath, newpath ])
131
131
 
132
132
        if len(delta.modified):
133
133
            titer = self.model.append(None, [ "Modified", None ])
141
141
        tv_path = None
142
142
        for data in self.model:
143
143
            for child in data.iterchildren():
144
 
                if child[0] == file_path:
 
144
                if child[0] == file_path or child[1] == file_path:
145
145
                    tv_path = child.path
146
146
                    break
147
147
        if tv_path is None: