##// END OF EJS Templates
transaction: write pending generated files...
Pierre-Yves David -
r23358:1b51d1b0 default
parent child Browse files
Show More
@@ -342,6 +342,7 b' class transaction(object):'
342 # remove callback since the data will have been flushed
342 # remove callback since the data will have been flushed
343 any = self._pendingcallback.pop(cat)(self)
343 any = self._pendingcallback.pop(cat)(self)
344 self._anypending = self._anypending or any
344 self._anypending = self._anypending or any
345 self._anypending |= self._generatefiles(suffix='.pending')
345 return self._anypending
346 return self._anypending
346
347
347 @active
348 @active
@@ -304,6 +304,15 b' Check final content.'
304 6666666666666666666666666666666666666666 5fddd98957c8a54a4d436dfe1da9d87f21a1b97b 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
304 6666666666666666666666666666666666666666 5fddd98957c8a54a4d436dfe1da9d87f21a1b97b 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
305 7777777777777777777777777777777777777777 32af7686d403cf45b5d95f2d70cebea587ac806a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
305 7777777777777777777777777777777777777777 32af7686d403cf45b5d95f2d70cebea587ac806a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
306
306
307 (check that no 'pending' files remain)
308
309 $ ls -1 other/.hg/bookmarks*
310 other/.hg/bookmarks
311 $ ls -1 other/.hg/store/phaseroots*
312 other/.hg/store/phaseroots
313 $ ls -1 other/.hg/store/00changelog.i*
314 other/.hg/store/00changelog.i
315
307 Error Handling
316 Error Handling
308 ==============
317 ==============
309
318
@@ -479,4 +488,12 b' Doing the actual push: hook abort'
479 abort: b2x-pretransactionclose.failpush hook exited with status 1
488 abort: b2x-pretransactionclose.failpush hook exited with status 1
480 [255]
489 [255]
481
490
491 (check that no 'pending' files remain)
482
492
493 $ ls -1 other/.hg/bookmarks*
494 other/.hg/bookmarks
495 $ ls -1 other/.hg/store/phaseroots*
496 other/.hg/store/phaseroots
497 $ ls -1 other/.hg/store/00changelog.i*
498 other/.hg/store/00changelog.i
499
General Comments 0
You need to be logged in to leave comments. Login now