def end_commit(self): """Feed the revision stored in the dumpfile to the svnadmin load pipe.""" DumpfileDelegate.end_commit(self) self.dumpfile.seek(0) while True: data = self.dumpfile.read(128 * 1024) # Chunk size is arbitrary if not data: break try: self.loader_pipe.stdin.write(data) except IOError: raise FatalError("svnadmin failed with the following output " "while loading the dumpfile:\n" + self.loader_pipe.stderr.read()) self.dumpfile.seek(0) self.dumpfile.truncate()
def end_commit(self): """Feed the revision stored in the dumpfile to the svnadmin load pipe.""" DumpfileDelegate.end_commit(self) self.dumpfile.seek(0) while True: data = self.dumpfile.read(128*1024) # Chunk size is arbitrary if not data: break try: self.loader_pipe.stdin.write(data) except IOError: raise FatalError("svnadmin failed with the following output " "while loading the dumpfile:\n" + self.loader_pipe.stderr.read()) self.dumpfile.seek(0) self.dumpfile.truncate()