s.delta : module documentation

Part of subvertpy

Subversion delta operations.
Function apply_txdelta_window Undocumented
Function apply_txdelta_handler_chunks Return a function that can be called repeatedly with txdelta windows.
Function apply_txdelta_handler Return a function that can be called repeatedly with txdelta windows.
Function txdelta_apply_ops Apply txdelta operations to a source view.
Function send_stream Send txdelta windows that create stream to handler
Function encode_length Encode a length variable.
Function decode_length Decode a length variable.
Function pack_svndiff_instruction Pack a SVN diff instruction
Function unpack_svndiff_instruction Unpack a SVN diff instruction
Function pack_svndiff0_window Undocumented
Function pack_svndiff0 Pack a SVN diff file.
Function unpack_svndiff0 Unpack a version 0 svndiff text.
def apply_txdelta_window(sbuf, window):
Undocumented
def apply_txdelta_handler_chunks(source_chunks, target_chunks):
Return a function that can be called repeatedly with txdelta windows.

:param sbuf: Source buffer :param target_stream: Target stream

def apply_txdelta_handler(sbuf, target_stream):
Return a function that can be called repeatedly with txdelta windows.

:param sbuf: Source buffer :param target_stream: Target stream

def txdelta_apply_ops(src_ops, ops, new_data, sview):
Apply txdelta operations to a source view.

:param src_ops: Source operations, ignored. :param ops: List of operations (action, offset, length). :param new_data: Buffer to fetch fragments with new data from :param sview: Source data :return: Result data

def send_stream(stream, handler, block_size=DELTA_WINDOW_SIZE):
Send txdelta windows that create stream to handler

:param stream: file-like object to read the file from :param handler: txdelta window handler function :return: MD5 hash over the stream

def encode_length(len):
Encode a length variable.

:param len: Length to encode :return: String with encoded length

def decode_length(text):
Decode a length variable.

:param text: Bytestring to decode :return: Integer with actual length

def pack_svndiff_instruction((action, offset, length)):
Pack a SVN diff instruction

:param action: Action :param offset: Offset :param length: Length :return: encoded text

def unpack_svndiff_instruction(text):
Unpack a SVN diff instruction

:param text: Text to parse :return: tuple with operation, remaining text

def pack_svndiff0_window(window):
Undocumented
def pack_svndiff0(windows):
Pack a SVN diff file.

:param windows: Iterator over diff windows :return: text

def unpack_svndiff0(text):
Unpack a version 0 svndiff text.

:param text: Text to unpack.
:return: yields tuples with sview_offset, sview_len, tview_len, ops_len, 
    ops, newdata
API Documentation for subvertpy, generated by pydoctor at 2010-12-01 16:04:34.