Changeset 2226

Show
Ignore:
Timestamp:
05/06/07 05:01:51 (2 years ago)
Author:
lewisbaker
Message:

PerforcePlugin:

Fixed an assertion error that occured when querying the subDirectories of the root directory node with None as the revision specifier.
Fixes #817.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • perforceplugin/trunk/p4trac/repos.py

    r1287 r2226  
    516516        """ 
    517517 
    518         # The root path is always a directory 
    519         if self._nodePath.isRoot: 
    520             return True 
    521  
    522518        # Use the latest revision if no revision specified 
    523519        if self._nodePath.rev is None: 
    524520            latestChange = self._repo.getLatestChange() 
    525521            self._nodePath = NodePath(self._nodePath.path, latestChange) 
     522 
     523        # The root path is always a directory 
     524        if self._nodePath.isRoot: 
     525            return True 
    526526 
    527527        # Do we already know it's a directory?