Package svndump :: Module cvs2svnfix :: Class SvnDumpCvs2SvnFix
[show private | hide private]
[frames | no frames]

Class SvnDumpCvs2SvnFix


A class for cvs2svn created dump files.
Method Summary
  __init__(self)
Initialize.
  execute(self, inputfile, outputfile)
Fix a cvs2svn created dump file.
  __add_node(self, revnr, node)
Adds a node to the history, recursively if it has copy-from path/rev.
  __delete_node(self, revnr, node)
Deletes a node from the history, recursively if it is a directory.
  __fix_node(self, revnr, node)
Checks the action of a node and keeps it's history.
string __node_kind(self, revnr, path)
Returns the kind of a node if it exists, else None.
  __rev_index(self, nodehist, revnr)
Returns the index into the node history or None.

Method Details

__init__(self)
(Constructor)

Initialize.

execute(self, inputfile, outputfile)

Fix a cvs2svn created dump file.
Parameters:
inputfile - Name of the cvs2svn created dumpfile.
           (type=string)
outputfile - Name of the fixed dumpfile.
           (type=string)

__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)

__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)

__fix_node(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)

__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:
"dir" for dirs, "file" for files or None.
           (type=string)

__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:45 2007 http://epydoc.sf.net