Package svndump :: Module tools :: Class SvnDumpCheck
[show private | hide private]
[frames | no frames]

Class SvnDumpCheck


A class for checking svn dump files.
Method Summary
  __init__(self)
Initialize.
  execute(self, dumpfilename)
Check a dump file.
  set_check_actions(self, docheck)
Set the check actions flag to the given value.
  set_check_dates(self, docheck)
Set the check dates flag to the given value.
  set_check_md5(self, docheck)
Set the check md5 sums flag to the given value.
  __add_node(self, revnr, node)
Adds a node to the history, recursively if it has copy-from path/rev.
  __check_action(self, revnr, node)
Checks the action of a node and keeps it's history.
  __delete_node(self, revnr, node)
Deletes a node from the history, recursively if it is a directory.
  __next_node(self)
Clears the node_printed flag.
  __next_rev(self)
Clears the rev_printed flag.
string __node_kind(self, revnr, path)
Returns the kind of a node if it exists, else None.
  __print_node(self, revnr, node)
Prints the revision number and node path if not already done.
  __print_rev(self, revnr)
Prints the revision number if not already done.
  __rev_index(self, nodehist, revnr)
Returns the index into the node history or None.

Method Details

__init__(self)
(Constructor)

Initialize.

execute(self, dumpfilename)

Check a dump file.
Parameters:
dumpfilename - Name of the file to check.
           (type=string)

set_check_actions(self, docheck)

Set the check actions flag to the given value.
Parameters:
docheck - New value for the flag.
           (type=bool)

set_check_dates(self, docheck)

Set the check dates flag to the given value.
Parameters:
docheck - New value for the flag.
           (type=bool)

set_check_md5(self, docheck)

Set the check md5 sums flag to the given value.
Parameters:
docheck - New value for the flag.
           (type=bool)

__add_node(self, revnr, node)

Adds a node to the history, recursively if it has copy-from path/rev.
Parameters:
revnr - Current revision number.
           (type=int)
node - Node to add.
           (type=SvnDumpNode)

__check_action(self, revnr, node)

Checks the action of a node and keeps it's history.
Parameters:
revnr - Current revision number.
           (type=int)
node - Current node.
           (type=SvnDumpNode)

__delete_node(self, revnr, node)

Deletes a node from the history, recursively if it is a directory.
Parameters:
revnr - Current revision number.
           (type=int)
node - Node to add.
           (type=SvnDumpNode)

__next_node(self)

Clears the node_printed flag.

__next_rev(self)

Clears the rev_printed flag.

__node_kind(self, revnr, path)

Returns the kind of a node if it exists, else None.
Parameters:
revnr - Current revision number.
           (type=int)
path - Path of a node.
           (type=string)
Returns:
"D" for dirs, "F" for files or None.
           (type=string)

__print_node(self, revnr, node)

Prints the revision number and node path if not already done.
Parameters:
revnr - Current revision number.
           (type=int)
node - Current node.
           (type=SvnDumpNode)

__print_rev(self, revnr)

Prints the revision number if not already done.
Parameters:
revnr - Current revision number.
           (type=int)

__rev_index(self, nodehist, revnr)

Returns the index into the node history or None.
Parameters:
nodehist - History of a node.
           (type=list)
revnr - Current revision number.
           (type=int)

Generated by Epydoc 2.1 on Wed Apr 11 04:31:46 2007 http://epydoc.sf.net