Changeset 2497

Show
Ignore:
Timestamp:
07/20/07 10:45:51 (1 year ago)
Author:
eblot
Message:

RevtreePlugin:

Fix up a nasty bug that prevented to render a branch:

  • when the latest revision of a branch contained a single change, being a
    file or directory deletion, the branch itself used to be considered as
    deleted.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • revtreeplugin/0.11/revtree/model.py

    r2361 r2497  
    4141        # clone information (if any) 
    4242        self.clone = None 
    43         # last changeset of a branch 
     43        # very last changeset of a branch (deleted branch) 
    4444        self.last = False 
    4545        # SVN properties 
     
    9898            src_mo = bcre.match(base_path) 
    9999        elif change is Changeset.DELETE: 
    100             self.last = True 
    101100            path_mo = bcre.match(base_path) 
     101            if path_mo and not path_mo.group('path'): 
     102                self.last = True 
    102103            src_mo = False 
    103104        else: 
  • revtreeplugin/0.11/revtree/svgview.py

    r2361 r2497  
    873873        else: 
    874874            allbranches = self.repos.branches().values() 
    875         revisions = []         
     875        revisions = [] 
    876876        for b in allbranches: 
    877877            if branches: 
  • revtreeplugin/0.11/setup.py

    r2361 r2497  
    1616 
    1717PACKAGE = 'TracRevtreePlugin' 
    18 VERSION = '0.5.7
     18VERSION = '0.5.8
    1919 
    2020setup (