Home | Trees | Index | Help |
|
---|
Package svndump :: Module node :: Class SvnDumpNode |
|
Method Summary | |
---|---|
Initializes a new SvnDumpNode. | |
Delete method, cleanup temp file if needed. | |
Deletes a property of this node. | |
string |
Returns the action of this node. |
string |
Returns the path the node has been copied from or an empty string. |
integer |
Returns the revision the node has been copied from or zero. |
string |
Returns the kind of this node. |
string |
Returns the path of this node. |
dict( string -> string ) |
Returns the properties as a dict. |
string |
Returns the value of the property with the given name. |
integer |
Returns the length of the text. |
string |
Returns the MD5 hash of the text. |
bool |
Returns True when this node has copy-from-path and copy-from-rev. |
bool |
Returns True if this node has properties. |
bool |
Returns true when this node has text. |
Sets copy-from-path and copy-from-rev. | |
Set the kind of this node. | |
Sets the path of this node. | |
Sets the properties for this node. | |
Sets a property of this node. | |
Sets the text for this node. | |
Sets the text for this node. | |
Sets the text for this node. | |
Close the handle. | |
'opaque handle' |
Open text and return a handle for text read functions. |
string |
Read some text from a handle. |
Reopen the handle. | |
Writes the text to the given file object. |
Method Details |
---|
__init__(self,
path,
action,
kind)
Initializes a new SvnDumpNode.
|
__del__(self)
Delete method, cleanup temp file if needed.
|
del_property(self, name)Deletes a property of this node.
|
get_action(self)Returns the action of this node.
|
get_copy_from_path(self)Returns the path the node has been copied from or an empty string.
|
get_copy_from_rev(self)Returns the revision the node has been copied from or zero.
|
get_kind(self)Returns the kind of this node.
|
get_path(self)Returns the path of this node.
|
get_properties(self)Returns the properties as a dict.
|
get_property(self, name)Returns the value of the property with the given name. If the property does not exist None is returned.
|
get_text_length(self)Returns the length of the text.
|
get_text_md5(self)Returns the MD5 hash of the text.
|
has_copy_from(self)Returns True when this node has copy-from-path and copy-from-rev.
|
has_properties(self)Returns True if this node has properties.
|
has_text(self)Returns true when this node has text.
|
set_copy_from(self, path, revnr)Sets copy-from-path and copy-from-rev. Only nodes with action 'add' or 'replace' may have copy-from revision and path.
|
set_kind(self, kind)Set the kind of this node. The kind can only be set if it was empty.
|
set_path(self, path)Sets the path of this node.
|
set_properties(self, properties)Sets the properties for this node.
|
set_property(self, name, value)Sets a property of this node. Nodes with action 'delete' cannot have properties.
|
set_text_file(self, filename, length=-1, md5='', delete=False)Sets the text for this node. The text will be read from the specified file.
|
set_text_fileobj(self, fileobj, offset, length, md5)Sets the text for this node. The text will be read from the specified file object.
|
set_text_node(self, node)Sets the text for this node. The text will be that of the specified node.
|
text_close(self, handle)Close the handle. See also: text_open(), text_reopen() and text_read().
|
text_open(self)Open text and return a handle for text read functions. Only one handle per dump file should be opened at the same time. A node for which the text has been set with set_text_node() virtually belongs also to the dump file of the node specified to set_text_node(). Also while the handle is open write_text_to_file() should not be called. See also: text_reopen(), text_read() and text_close().
|
text_read(self, handle, count=16384)Read some text from a handle. See also: text_open(), text_reopen() and text_close().
|
text_reopen(self, handle)Reopen the handle. Repositions the handle to the start of the text. See also: text_open(), text_read() and text_close().
|
write_text_to_file(self, outfile)Writes the text to the given file object.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed Apr 11 04:41:33 2007 | http://epydoc.sf.net |