Package svndump :: Module merge :: Class SvnDumpMerge
[show private | hide private]
[frames | no frames]

Class SvnDumpMerge


A class for merging svn dump files.
Method Summary
  __init__(self)
Initialize.
  add_directory(self, dirName)
Adds an additional directory ('mkdir').
integer add_input_file(self, filename)
Adds an input file and returns it's index.
  add_mkdir_exclude(self, index, dirName)
Adds a mkdir exclude.
  add_rename(self, index, prefixFrom, prefixTo)
Adds a path prefix reanme.
  merge(self)
Executes the merge.
  set_log_message(self, msg)
Set log message for additional dirs revision.
  set_output_file(self, filename, startRev)
Sets the output file name and optional start revision.
  __change_node(self, dumpIndex, node)
Creates a new node if the path changed, else returns the old node.
  __copy_revision(self, dumpIndex)
Copies a revision from inDump[dumpIndex] to outDump.
integer __remove_empty_dumps(self)
Removes dump files which reached EOF and returns the count of dumps.
string @return Renamed path. __rename_path(self, path, renames)
Applies the renames to the path and returns the new path.

Method Details

__init__(self)
(Constructor)

Initialize.

add_directory(self, dirName)

Adds an additional directory ('mkdir').
Parameters:
dirName - Name of the directory.
           (type=string)

add_input_file(self, filename)

Adds an input file and returns it's index.
Parameters:
filename - Name of a input dump file.
           (type=string)
Returns:
Index of the input file.
           (type=integer)

add_mkdir_exclude(self, index, dirName)

Adds a mkdir exclude.
Parameters:
index - Index of the dump file.
           (type=integer)
dirName - Name of the directory.
           (type=string)

add_rename(self, index, prefixFrom, prefixTo)

Adds a path prefix reanme.
Parameters:
index - Index of the dump file.
           (type=integer)
prefixFrom - From-path prefix (directory).
           (type=string)
prefixTo - To-path prefix (directory).
           (type=string)

merge(self)

Executes the merge.

set_log_message(self, msg)

Set log message for additional dirs revision.
Parameters:
msg - Log message.
           (type=string)

set_output_file(self, filename, startRev=0)

Sets the output file name and optional start revision.
Parameters:
filename - Name of the output dump file.
           (type=string)
startRev - Start revision number, default is 0.
           (type=integer)

__change_node(self, dumpIndex, node)

Creates a new node if the path changed, else returns the old node.
Parameters:
dumpIndex - Index of the input dump file.
           (type=integer)
node - A node.
           (type=SvnDumpNode)

__copy_revision(self, dumpIndex)

Copies a revision from inDump[dumpIndex] to outDump.
Parameters:
dumpIndex - Index of the input dump file.
           (type=integer)

__remove_empty_dumps(self)

Removes dump files which reached EOF and returns the count of dumps.
Returns:
Count of remaining input dump files.
           (type=integer)

__rename_path(self, path, renames)

Applies the renames to the path and returns the new path.
Parameters:
path - A path.
           (type=string)
renames - List of rename tuples.
           (type=list( ( string, string ) ))
Returns:
string @return Renamed path.

Generated by Epydoc 2.1 on Tue Jul 12 22:55:20 2005 http://epydoc.sf.net