##// END OF EJS Templates
transaction: document startgroup and endgroup...
Pierre-Yves David -
r23250:8919dc7f default
parent child Browse files
Show More
@@ -117,10 +117,18 b' class transaction(object):'
117
117
118 @active
118 @active
119 def startgroup(self):
119 def startgroup(self):
120 """delay registration of file entry
121
122 This is used by strip to delay vision of strip offset. The transaction
123 sees either none or all of the strip actions to be done."""
120 self._queue.append(([], []))
124 self._queue.append(([], []))
121
125
122 @active
126 @active
123 def endgroup(self):
127 def endgroup(self):
128 """apply delayed registration of file entry.
129
130 This is used by strip to delay vision of strip offset. The transaction
131 sees either none or all of the strip actions to be done."""
124 q = self._queue.pop()
132 q = self._queue.pop()
125 self.entries.extend(q[0])
133 self.entries.extend(q[0])
126 self._backupentries.extend(q[1])
134 self._backupentries.extend(q[1])
General Comments 0
You need to be logged in to leave comments. Login now