comparison mercurial/hg.py @ 95:589f507bb259

Beginnings of transaction undo support
author mpm@selenic.com
date Wed, 18 May 2005 16:31:51 -0800
parents 7daef883134f
children fce47326677c
comparison
equal deleted inserted replaced
94:7daef883134f 95:589f507bb259
292 292
293 def file(self, f): 293 def file(self, f):
294 return filelog(self.opener, f) 294 return filelog(self.opener, f)
295 295
296 def transaction(self): 296 def transaction(self):
297 return transaction(self.opener, self.join("journal")) 297 return transaction(self.opener, self.join("journal"),
298 self.join("undo"))
298 299
299 def commit(self, parent, update = None, text = ""): 300 def commit(self, parent, update = None, text = ""):
300 tr = self.transaction() 301 tr = self.transaction()
301 302
302 try: 303 try: