ScriptSvnStatusCache¶
- class ScriptSvnStatusCache.SvnStatusCache¶
- Bases: - object- This status cache is used by the NavigatorControlExtension to determine the visibility, as well as by the FileCommands - EnableForProject(nProjectHandle)¶
- Enables the status cache for the given project. It will stay enabled until the project is closed. This operation is cheap and idempotent. Status Caching can be enabled for a non-versioned project, always return - nullon- GetStatus(int, Guid)or- GetStatus(ISvnObjectId).- Parameters:
- nProjectHandle (int) – The project handle. 
 
 - IsEnabledForProject(nProjectHandle)¶
- Determines whether the cache is enabled for the specified project handle. - Parameters:
- nProjectHandle (int) – The project handle. 
- Return type:
- bool 
- Returns:
- Trueif it is enabled.
 
 - GetStatus(id)¶
- Gets the status. - Parameters:
- id ( - SvnObjectId) –
- Return type:
- Returns:
- null if the node is a virtual node, the project is not versioned or the status cache is not enabled for the project. 
 
 
- class ScriptSvnStatusCache.SvnCachedStatus¶
- Bases: - object- The cached status for the file. - property FileStatus¶
- Gets the status for the svnobj file. - Return type:
- SvnStatus
 
 - property DirectoryStatus¶
- Gets the status for the directory. - Return type:
- SvnStatus
 
 - property Flags¶
- Gets flags for further information. - Return type:
- SvnStatusFlags