rope.base.history ================= .. py:module:: rope.base.history Classes ------- .. autoapisummary:: rope.base.history.History Module Contents --------------- .. py:class:: History(project, maxundos=None) A class that holds project history .. py:attribute:: project .. py:attribute:: current_change :value: None .. py:method:: do(changes, task_handle=taskhandle.DEFAULT_TASK_HANDLE) Perform the change and add it to the `self.undo_list` Note that uninteresting changes (changes to ignored files) will not be appended to `self.undo_list`. .. py:method:: undo(change=None, drop=False, task_handle=taskhandle.DEFAULT_TASK_HANDLE) Redo done changes from the history When `change` is `None`, the last done change will be undone. If change is not `None` it should be an item from `self.undo_list`; this change and all changes that depend on it will be undone. In both cases the list of undone changes will be returned. If `drop` is `True`, the undone change will not be appended to the redo list. .. py:method:: redo(change=None, task_handle=taskhandle.DEFAULT_TASK_HANDLE) Redo undone changes from the history When `change` is `None`, the last undone change will be redone. If change is not `None` it should be an item from `self.redo_list`; this change and all changes that depend on it will be redone. In both cases the list of redone changes will be returned. .. py:method:: contents_before_current_change(file) .. py:method:: write() .. py:method:: get_file_undo_list(resource) .. py:attribute:: undo_list .. py:attribute:: redo_list .. py:property:: tobe_undone The last done change if available, `None` otherwise .. py:property:: tobe_redone The last undone change if available, `None` otherwise .. py:property:: max_undos .. py:property:: save .. py:property:: compress .. py:method:: clear() Forget all undo and redo information