comparison mercurial/localrepo.py @ 1516:0b1b029b4de3

Automatically run "verify" whenever we run "recover"
author Matt Mackall <mpm@selenic.com>
date Tue, 08 Nov 2005 14:22:03 -0800
parents 755e7ac351ef
children 2ba8bf7defda
comparison
equal deleted inserted replaced
1515:3bd6d27cb81c 1516:0b1b029b4de3
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"))