'Show the changes to the book from its last checkpointed state
:param allow_revert: If True the diff dialog will have a button to allow the user to revert all changes
:param to_container: A container object to compare the current container to. If None, the previously checkpointed container is used'

def show_current_diff(self, allow_revert=True, to_container=None):

    self.commit_all_editors_to_container()
    d = self.create_diff_dialog()
    d.revert_requested.connect(partial(self.revert_requested, self.global_undo.previous_container))
    other = (to_container or self.global_undo.previous_container)
    d.container_diff(other, self.global_undo.current_container, names=(self.global_undo.label_for_container(other), self.global_undo.label_for_container(self.global_undo.current_container)))
