Package svndump :: Module eolfix :: Class SvnDumpEolFix
[show private | hide private]
[frames | no frames]

Class SvnDumpEolFix


A class for fixing mixed EOL style files in a svn dump file.
Method Summary
  __init__(self)
Initialize.
  execute(self)
Executes the EolFix.
  set_eol_style(self, eolstyle)
Enable/disable setting eol-style on text files.
  set_fix_for_rev_file(self, fixrevfile)
Set what to fix for a given revision/file.
  set_fix_options(self, fix)
Set what to fix.
  set_input_file(self, filename)
Sets the input dump file name.
  set_mode_callback(self, callback, parameter)
Sets mode to 'callback'.
  set_mode_prop(self)
Sets mode to 'prop'.
  set_mode_regexp(self, expressions)
Sets mode to 'regexp'.
  set_output_file(self, filename)
Sets the output dump file name and clears the dry-run flag.
  set_temp_dir(self, tmpdir)
Sets the the directory for temporary files.
  set_warning_file(self, warnfile)
Sets the filename for writing warnings into.

Method Details

__init__(self)
(Constructor)

Initialize.

execute(self)

Executes the EolFix.

set_eol_style(self, eolstyle)

Enable/disable setting eol-style on text files.

If eolstyle is None do not set svn:eol-style, else set it to the given value.
Parameters:
eolstyle - Value for the svn:eol-style property or None.
           (type=string)

set_fix_for_rev_file(self, fixrevfile)

Set what to fix for a given revision/file.
Parameters:
fixrevfile - A string containing colon separated the fix option, revsision number and path of a file.
           (type=string)

set_fix_options(self, fix)

Set what to fix.
Parameters:
fix - A string containing comma separated options. Valid options are:
  • 'CRLF': replace CRLF by LF
  • 'CR': replace CR by LF
  • 'RemCR': remove CR

           (type=string)

set_input_file(self, filename)

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

set_mode_callback(self, callback, parameter)

Sets mode to 'callback'.
Parameters:
callback - Callback function to check if conversion is needed.
           (type=function( SvnDumpFile, SvnDumpNode, parameter ))
parameter - A parameter given to the callback function.
           (type=any)

set_mode_prop(self)

Sets mode to 'prop'.

In this mode SvnDumpEolFix assumes text files have the property svn:eol-style set.

See also: eolfix_callback_prop

set_mode_regexp(self, expressions)

Sets mode to 'regexp'.

In this mode every file which matches at least one of the regexps is treated as text file.

See also: eolfix_callback_regexp
Parameters:
expressions - A list of regular expressions.
           (type=list( 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)

set_temp_dir(self, tmpdir)

Sets the the directory for temporary files.
Parameters:
tmpdir - Name of the tmp dir.
           (type=string)

set_warning_file(self, warnfile)

Sets the filename for writing warnings into.
Parameters:
warnfile - Name of the warnings file.
           (type=string)

Generated by Epydoc 2.1 on Mon Jun 16 03:33:11 2008 http://epydoc.sf.net