rope.contrib.changestack ======================== .. py:module:: rope.contrib.changestack .. autoapi-nested-parse:: For performing many refactorings as a single command `changestack` module can be used to perform many refactorings on top of each other as one bigger command. It can be used like:: stack = ChangeStack(project, 'my big command') #.. stack.push(refactoring1.get_changes()) #.. stack.push(refactoring2.get_changes()) #.. stack.push(refactoringX.get_changes()) stack.pop_all() changes = stack.merged() Now `changes` can be previewed or performed as before. Classes ------- .. autoapisummary:: rope.contrib.changestack.ChangeStack Module Contents --------------- .. py:class:: ChangeStack(project, description='merged changes') .. py:attribute:: project .. py:attribute:: description :value: 'merged changes' .. py:attribute:: stack :value: [] .. py:method:: push(changes) .. py:method:: pop_all() .. py:method:: merged()