equal
deleted
inserted
replaced
223 |
223 |
224 def recover(self): |
224 def recover(self): |
225 lock = self.lock() |
225 lock = self.lock() |
226 if os.path.exists(self.join("journal")): |
226 if os.path.exists(self.join("journal")): |
227 self.ui.status(_("rolling back interrupted transaction\n")) |
227 self.ui.status(_("rolling back interrupted transaction\n")) |
228 return transaction.rollback(self.opener, self.join("journal")) |
228 transaction.rollback(self.opener, self.join("journal")) |
|
229 return True |
229 else: |
230 else: |
230 self.ui.warn(_("no interrupted transaction available\n")) |
231 self.ui.warn(_("no interrupted transaction available\n")) |
|
232 return False |
231 |
233 |
232 def undo(self): |
234 def undo(self): |
233 lock = self.lock() |
235 lock = self.lock() |
234 if os.path.exists(self.join("undo")): |
236 if os.path.exists(self.join("undo")): |
235 self.ui.status(_("rolling back last transaction\n")) |
237 self.ui.status(_("rolling back last transaction\n")) |