##// END OF EJS Templates
transaction: accept a 'location' argument for registertmp...
Pierre-Yves David -
r23354:918c7777 default
parent child Browse files
Show More
@@ -225,13 +225,13 b' class transaction(object):'
225 225 self._backupsfile.flush()
226 226
227 227 @active
228 def registertmp(self, tmpfile):
228 def registertmp(self, tmpfile, location=''):
229 229 """register a temporary transaction file
230 230
231 231 Such file will be delete when the transaction exit (on both failure and
232 232 success).
233 233 """
234 self._addbackupentry(('', '', tmpfile, False))
234 self._addbackupentry((location, '', tmpfile, False))
235 235
236 236 @active
237 237 def addfilegenerator(self, genid, filenames, genfunc, order=0,
General Comments 0
You need to be logged in to leave comments. Login now