Comments
Patch
@@ -262,11 +262,13 @@ class transaction(object):
# but for bookmarks that are handled outside this mechanism.
self._filegenerators[genid] = (order, filenames, genfunc, location)
def _generatefiles(self, suffix=''):
# write files registered for generation
+ any = False
for entry in sorted(self._filegenerators.values()):
+ any = True
order, filenames, genfunc, location = entry
vfs = self._vfsmap[location]
files = []
try:
for name in filenames:
@@ -278,10 +280,11 @@ class transaction(object):
files.append(vfs(name, 'w', atomictemp=True))
genfunc(*files)
finally:
for f in files:
f.close()
+ return any
@active
def find(self, file):
if file in self.map:
return self.entries[self.map[file]]