Show More
@@ -912,6 +912,7 b' class localrepository(object):' | |||
|
912 | 912 | vfsmap = {'plain': self.vfs} # root of .hg/ |
|
913 | 913 | tr = transaction.transaction(rp, self.svfs, vfsmap, |
|
914 | 914 | "journal", |
|
915 | "undo", | |
|
915 | 916 | aftertrans(renames), |
|
916 | 917 | self.store.createmode) |
|
917 | 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 | 82 | pass |
|
83 | 83 | |
|
84 | 84 | class transaction(object): |
|
85 |
def __init__(self, report, opener, vfsmap, journalname, |
|
|
86 | createmode=None): | |
|
85 | def __init__(self, report, opener, vfsmap, journalname, undoname=None, | |
|
86 | after=None, createmode=None): | |
|
87 | 87 | """Begin a new transaction |
|
88 | 88 | |
|
89 | 89 | Begins a new transaction that allows rolling back writes in the event of |
@@ -105,6 +105,7 b' class transaction(object):' | |||
|
105 | 105 | self.entries = [] |
|
106 | 106 | self.map = {} |
|
107 | 107 | self.journal = journalname |
|
108 | self.undoname = undoname | |
|
108 | 109 | self._queue = [] |
|
109 | 110 | # a dict of arguments to be passed to hooks |
|
110 | 111 | self.hookargs = {} |
General Comments 0
You need to be logged in to leave comments.
Login now