ScriptSvnReporters¶
- class ScriptSvnReporters.SvnReporter¶
Bases:
object
Instances of this interface can used as callbacks for user display of subversion messages.
- ReportStart()¶
Reports the start.
- HandleSvnNotify(notify)¶
Is called for subversion notifications.
- Parameters:
notify (
SvnNotify
) – The notify.
- HandleSvnProgress(nItemsCompleted, nItemsTotal)¶
Handles the SVN progress.
- Parameters:
nItemsCompleted (int) – The number of items completed.
nItemsTotal (int) – The number of items total.
- HandleSvnCancel()¶
Handles the SVN cancel.
- Return type:
bool
- Returns:
True if the current process should be cancelled.
- HandlePluginNotify(severity, type, stMessage, nProjectHandle=-1, objectGuid=<property object>)¶
Handles messages which are not caused by subversion, but by the subversion plugin or other higher levels.
- Parameters:
severity (Severity) – The severity of the message.
type (SvnNotificationType) – The type of notification.
stMessage (str) – The user readable message.
nProjectHandle (int) – The project handle or -1 if not relevant.
objectGuid (
Guid
) – The object GUID or Guid.Empty if not relevant.
- ReportFinish(bSuccess, nRevision)¶
Reports that the action is finished.
- Parameters:
bSuccess (bool) – if set to
True
, the operation was successfull.nRevision (int) – The subversion revision if applicable (e. G. on checkout / update).