Package svndump :: Module props :: Class ApplyAutoprops
[show private | hide private]
[frames | no frames]

Class ApplyAutoprops


A class for applying auto-props to a Subversion dump file.
Method Summary
  __init__(self, inputfilename, outputfilename, configfile)
Initializes the ApplyAutoprops object.
  apply(self)
Applies the auto-props.
re.Regex _make_regex(self, expr)
Convert the apr_fnmatch expression into a regular expression.
  _read_config(self)
Reads the auto-props config.
  _set_properties(self, node)
Set the auto-props.
((str,str)...) _split_properties(self, propstring)
Splits the value of a key in the auto-props section.

Method Details

__init__(self, inputfilename, outputfilename, configfile)
(Constructor)

Initializes the ApplyAutoprops object.
Parameters:
inputfilename - Name of the input dump file.
           (type=string)
outputfilename - Name of the output dump file.
           (type=string)
configfile - Name of the Subversion config file.
           (type=string)

apply(self)

Applies the auto-props.

_make_regex(self, expr)

Convert the apr_fnmatch expression into a regular expression.
Parameters:
expr - An apr_fnmatch expression.
           (type=string)
Returns:
Compiled regular expression.
           (type=re.Regex)

_read_config(self)

Reads the auto-props config.

_set_properties(self, node)

Set the auto-props.
Parameters:
node - Node to set the properties on.
           (type=SvnDumpNode)

_split_properties(self, propstring)

Splits the value of a key in the auto-props section.
Parameters:
propstring - A property string.
           (type=string)
Returns:
Tuple containing property name and value tuples.
           (type=((str,str)...))

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