Rollback to the latest snapshot. Returns snapshot id or None.
(self)
| 330 | } |
| 331 | |
| 332 | def undo(self) -> str | None: |
| 333 | """Rollback to the latest snapshot. Returns snapshot id or None.""" |
| 334 | result = self.snapshot_mgr.rollback_latest() |
| 335 | if result: |
| 336 | self._log(f"Rolled back to {result}") |
| 337 | return result |
| 338 | |
| 339 | def rollback_to(self, snapshot_id: str) -> bool: |
| 340 | """Rollback to a specific snapshot.""" |
no test coverage detected