module documentation
Subversion delta operations.
| Function | apply |
Return a function that can be called repeatedly with txdelta windows. |
| Function | apply |
Return a function that can be called repeatedly with txdelta windows. |
| Function | apply |
Apply a txdelta window to a buffer. |
| Function | decode |
Decode a length variable. |
| Function | encode |
Encode a length variable. |
| Function | pack |
Pack a SVN diff file. |
| Function | pack |
Pack an individual window using svndiff0. |
| Function | pack |
Pack a SVN diff instruction |
| Function | send |
Send txdelta windows that create stream to handler |
| Function | txdelta |
Apply txdelta operations to a source view. |
| Function | unpack |
Unpack a version 0 svndiff text. |
| Function | unpack |
Unpack a SVN diff instruction |
| Constant | DELTA |
Undocumented |
| Constant | MAX |
Undocumented |
| Constant | SVNDIFF0 |
Undocumented |
| Constant | TXDELTA |
Undocumented |
| Constant | TXDELTA |
Undocumented |
| Constant | TXDELTA |
Undocumented |
| Constant | TXDELTA |
Undocumented |
| Variable | __author__ |
Undocumented |
Return a function that can be called repeatedly with txdelta windows.
| Parameters | |
| sbuf | Source buffer |
| target | Target stream |
Return a function that can be called repeatedly with txdelta windows.
| Parameters | |
| source | Undocumented |
| target | Undocumented |
| sbuf | Source buffer |
| target | Target stream |
Apply a txdelta window to a buffer.
| Parameters | |
| sbuf | Source buffer (as bytestring) |
| window | (sview_offset, sview_len, tview_len, src_ops, ops, new_data) |
| sview | Offset of the source view |
| sview | Length of the source view |
| tview | Target view length |
| src | Operations to apply to sview |
| ops | Ops to apply |
| new | Buffer with possible new data |
| Returns | |
| Target buffer |
Pack an individual window using svndiff0.
| Parameters | |
| window | Window to pack |
| Returns | |
| Packed diff (as bytestring) |
Pack a SVN diff instruction
| Parameters | |
| diff | (action, offset, length) |
| action | Action |
| offset | Offset |
| length | Length |
| Returns | |
| encoded text |
Send txdelta windows that create stream to handler
| Parameters | |
| stream | file-like object to read the file from |
| handler | txdelta window handler function |
| block | Undocumented |
| Returns | |
| MD5 hash over the stream |
Apply txdelta operations to a source view.
| Parameters | |
| src | Source operations, ignored. |
| ops | List of operations (action, offset, length). |
| new | Buffer to fetch fragments with new data from |
| sview | Source data |
| Returns | |
| Result data |
Unpack a version 0 svndiff text.
| Parameters | |
| text | Text to unpack. |
| Returns | |
| yields tuples with sview_offset, sview_len, tview_len, ops_len, ops, newdata |