##// END OF EJS Templates
transaction: pass the name of the "undo" journal to the transaction...
Pierre-Yves David -
r23903:426607be default
parent child Browse files
Show More
@@ -912,6 +912,7 b' class localrepository(object):'
912 vfsmap = {'plain': self.vfs} # root of .hg/
912 vfsmap = {'plain': self.vfs} # root of .hg/
913 tr = transaction.transaction(rp, self.svfs, vfsmap,
913 tr = transaction.transaction(rp, self.svfs, vfsmap,
914 "journal",
914 "journal",
915 "undo",
915 aftertrans(renames),
916 aftertrans(renames),
916 self.store.createmode)
917 self.store.createmode)
917 # note: writing the fncache only during finalize mean that the file is
918 # note: writing the fncache only during finalize mean that the file is
@@ -82,8 +82,8 b' def _playback(journal, report, opener, v'
82 pass
82 pass
83
83
84 class transaction(object):
84 class transaction(object):
85 def __init__(self, report, opener, vfsmap, journalname, after=None,
85 def __init__(self, report, opener, vfsmap, journalname, undoname=None,
86 createmode=None):
86 after=None, createmode=None):
87 """Begin a new transaction
87 """Begin a new transaction
88
88
89 Begins a new transaction that allows rolling back writes in the event of
89 Begins a new transaction that allows rolling back writes in the event of
@@ -105,6 +105,7 b' class transaction(object):'
105 self.entries = []
105 self.entries = []
106 self.map = {}
106 self.map = {}
107 self.journal = journalname
107 self.journal = journalname
108 self.undoname = undoname
108 self._queue = []
109 self._queue = []
109 # a dict of arguments to be passed to hooks
110 # a dict of arguments to be passed to hooks
110 self.hookargs = {}
111 self.hookargs = {}
General Comments 0
You need to be logged in to leave comments. Login now