Home | Trees | Index | Help |
|
---|
Package svndump :: Module file :: Class SvnDumpFile |
|
Method Summary | |
---|---|
__init__(self)
| |
Add a node to the current revision. | |
Add a new revision to this dump file. | |
Add the current revision of the specified SvnDumpFile to this one. | |
Close this svn dump file. | |
bool |
Creates this dumpfile like srcfile. |
Create a new dump file starting with revision 0. | |
Create a new dump file. | |
SvnDumpNode |
Returns the node at the given index. |
integer |
Returns the count of nodes of the current revision. |
Returns a list of nodes matching path and actions. | |
Returns an iterator returning the nodes. | |
string |
Returns the author of the current revision. |
list( integer ) |
Returns the date of the current revision as ( time_t, micros ). |
string |
Returns the date of the current revision as string. |
string |
Returns the log message of the current revision. |
integer |
Returns the current revision number. |
list( string ) |
Returns a list of revision property names of the current revision. |
string |
Returns the value of the revision property with the specified name. |
dict( string -> string ) |
Returns a dict containing the revision properties. |
string |
Returns the UUID of this dump file. |
bool |
Returns true if the revision has a property with the specified name. |
bool |
Returns false when EOF occured. |
Open a dump file for reading and read the header. | |
bool |
Read the next revision. |
Set the author of this revision. | |
string |
Check a date string, set and return a valid one. |
Set the log message of this revision. | |
Set the value of the revision property with the specified name to the given value. | |
Returns the UUID of this dump file. |
Method Details |
---|
add_node(self, node)Add a node to the current revision. This method uses SvnDumpNode.write_text_to_file().
|
add_rev(self, revProps)Add a new revision to this dump file.
|
add_rev_from_dump(self, dump)Add the current revision of the specified SvnDumpFile to this one.
|
close(self)Close this svn dump file. |
create_like(self, filename, srcfile)Creates this dumpfile like srcfile. If the current revision number of srcfile is zero create_with_rev_0() is called on this dumpfile and read_next_rev() is called on srcfile. If the current revision number of srcdump is greater than zero create_with_rev_n() is called. In both cases True is returned if srcdump contains a revision and False if srcdump reached EOF.
|
create_with_rev_0(self, filename, uuid, rev0date)Create a new dump file starting with revision 0.
|
create_with_rev_n(self, filename, uuid, firstRevNr)Create a new dump file.
|
get_node(self, index)Returns the node at the given index.
|
get_node_count(self)Returns the count of nodes of the current revision.
|
get_nodes_by_path(self, path, actions='ACDR')Returns a list of nodes matching path and actions. Actions is a string that may contain one or more of the letters A, C, D and R which are the first letters of the actions Add, Change, Delete and Replace.
|
get_nodes_iter(self)Returns an iterator returning the nodes. |
get_rev_author(self)Returns the author of the current revision.
|
get_rev_date(self)Returns the date of the current revision as ( time_t, micros ).
|
get_rev_date_str(self)Returns the date of the current revision as string.
|
get_rev_log(self)Returns the log message of the current revision.
|
get_rev_nr(self)Returns the current revision number.
|
get_rev_prop_names(self)Returns a list of revision property names of the current revision.
|
get_rev_prop_value(self, name)Returns the value of the revision property with the specified name.
|
get_rev_props(self)Returns a dict containing the revision properties.
|
get_uuid(self)Returns the UUID of this dump file.
|
has_rev_prop(self, name)Returns true if the revision has a property with the specified name.
|
has_revision(self)Returns false when EOF occured.
|
open(self, filename)Open a dump file for reading and read the header.
|
read_next_rev(self)Read the next revision.
|
set_rev_author(self, author)Set the author of this revision.
|
set_rev_date(self, dateStr)Check a date string, set and return a valid one.
|
set_rev_log(self, logMsg)Set the log message of this revision.
|
set_rev_prop_value(self, name, value)Set the value of the revision property with the specified name to the given value.
|
set_uuid(self, uuid)Returns the UUID of this dump file.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed Apr 11 04:41:33 2007 | http://epydoc.sf.net |