diff --git a/subvertpy/_ra.c b/subvertpy/_ra.c index 5cac9a83..b0a09140 100644 --- a/subvertpy/_ra.c +++ b/subvertpy/_ra.c @@ -2035,9 +2035,9 @@ static PyMethodDef ra_methods[] = { { "replay_range", (PyCFunction)ra_replay_range, METH_VARARGS|METH_KEYWORDS, "S.replay_range(start_rev, end_rev, low_water_mark, cbs, send_deltas=True)\n" "Replay a range of revisions, reporting them to an update editor.\n" - "cbs is a two-tuple with two callbacks:\n" - "- start_rev_cb(revision, revprops) -> editor\n" - "- finish_rev_cb(revision, revprops, editor)\n" + "cbs is a two-tuple with two callbacks:\n\n" + " - start_rev_cb(revision, revprops) -> editor\n" + " - finish_rev_cb(revision, revprops, editor)\n" }, { "do_switch", (PyCFunction)ra_do_switch, METH_VARARGS|METH_KEYWORDS, "S.do_switch(revision_to_update_to, update_target, recurse, switch_url, update_editor, send_copyfrom_args=False, ignore_ancestry=True)\n" }, diff --git a/subvertpy/delta.py b/subvertpy/delta.py index 9384d231..13b3c048 100644 --- a/subvertpy/delta.py +++ b/subvertpy/delta.py @@ -37,13 +37,8 @@ def apply_txdelta_window(sbuf, window): """Apply a txdelta window to a buffer. :param sbuf: Source buffer (as bytestring) - :param window: (sview_offset, sview_len, tview_len, src_ops, ops, new_data) - :param sview_offset: Offset of the source view - :param sview_len: Length of the source view - :param tview_len: Target view length - :param src_ops: Operations to apply to sview - :param ops: Ops to apply - :param new_data: Buffer with possible new data + :param window: Tuple of (sview_offset, sview_len, tview_len, src_ops, + ops, new_data) :return: Target buffer """ (sview_offset, sview_len, tview_len, src_ops, ops, new_data) = window @@ -57,8 +52,8 @@ def apply_txdelta_window(sbuf, window): 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 + :param source_chunks: Source chunks to join into a buffer + :param target_chunks: Target chunks list to append results to """ sbuf = bytes().join(source_chunks) @@ -179,10 +174,7 @@ def decode_length(text): def pack_svndiff_instruction(diff_params): """Pack a SVN diff instruction - :param diff_params: (action, offset, length) - :param action: Action - :param offset: Offset - :param length: Length + :param diff_params: Tuple of (action, offset, length) :return: encoded text """ (action, offset, length) = diff_params diff --git a/subvertpy/tests/__init__.py b/subvertpy/tests/__init__.py index 32aff9a5..886d4372 100644 --- a/subvertpy/tests/__init__.py +++ b/subvertpy/tests/__init__.py @@ -354,7 +354,7 @@ def client_log(self, url, start_revnum, stop_revnum): :param url: URL to log :param start_revnum: Start revision of the range to log over - :param start_revnum: Stop revision of the range to log over + :param stop_revnum: Stop revision of the range to log over :return: Dictionary """ r = ra.RemoteAccess(url)