Changeset 3369 for gitplugin/0.10

Show
Ignore:
Timestamp:
03/15/08 03:50:11 (9 months ago)
Author:
hvr
Message:

GitPlugin: raise NoSuchNode exception when path can't be found during node construction (addresses #2671)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gitplugin/0.10/gitplugin/git_fs.py

    r3249 r3369  
    168168                                        tree_ls_info = None 
    169169 
    170                         if tree_ls_info != None: 
    171                                 (self.perm,k,self.sha,fn) = tree_ls_info 
    172                         else: 
    173                                 k = 'blob' 
     170                        if tree_ls_info is None: 
     171                                raise NoSuchNode(path, rev) 
     172 
     173                        (self.perm,k,self.sha,fn) = tree_ls_info 
    174174 
    175175                        rev=self.git.last_change(rev, p)