Package svndump :: Module edit :: Class SvnDumpEdit
[show private | hide private]
[frames | no frames]

Class SvnDumpEdit


A class for editing files in a svn dump file.
Method Summary
  __init__(self)
Initialize.
  __print(self, level, msg)
Print msg if the verbosity is >= level.
  __process_rev(self, srcdmp, dstdmp)
Process one revision.
SvnDumpNode __replace_file(self, node, replacement_path)
Replace the contents of a node.
  execute(self)
Executes the Edit.
  print_files(self)
Print a list of the files to be edited.
  propdel(self, revision, filename, propname)
Add a propert to be deleted from a file.
  replace(self, revision, filename, replacefile)
Add a file to be replaced.
  set_input_file(self, filename)
Sets the input dump file name.
  set_output_file(self, filename)
Sets the output dump file name and clears the dry-run flag.

Method Details

__init__(self)
(Constructor)

Initialize.

__print(self, level, msg)

Print msg if the verbosity is >= level.
Parameters:
level - The verbosity level at which to print msg.
           (type=int)
msg - The message to print.
           (type=string)

__process_rev(self, srcdmp, dstdmp)

Process one revision.
Parameters:
srcdmp - The source dump file.
           (type=SvnDumpFile)
dstdmp - The destination dump file.
           (type=SvnDumpFile)

__replace_file(self, node, replacement_path)

Replace the contents of a node.
Parameters:
node - The node to replace the contents of.
           (type=SvnDumpNode)
replacement_path - The path to the replacement file.
           (type=string)
Returns:
The converted node.
           (type=SvnDumpNode)

execute(self)

Executes the Edit.

print_files(self)

Print a list of the files to be edited.

propdel(self, revision, filename, propname)

Add a propert to be deleted from a file.
Parameters:
revision - Revision of the file to edit.
           (type=int)
filename - In repos path of file to edit.
           (type=string)
propname - Property name to delete.
           (type=string)

replace(self, revision, filename, replacefile)

Add a file to be replaced.
Parameters:
revision - Revision of the file to replace.
           (type=int)
filename - In repos path of file to replace.
           (type=string)
replacefile - Path to the replacement file.
           (type=string)

set_input_file(self, filename)

Sets the input dump file name.
Parameters:
filename - Name of the input file.
           (type=string)

set_output_file(self, filename)

Sets the output dump file name and clears the dry-run flag.
Parameters:
filename - Name of the output file.
           (type=string)

Generated by Epydoc 2.1 on Fri Aug 14 23:53:11 2009 http://epydoc.sf.net