import repositoryhandler repositoryhandler.backends.DEBUG = True path = uri_to_filename(uri) (uri, repo) = _get_uri_and_repo(path) if not config.no_parse: printdbg("Preparing logging") # Create reader reader = LogReader() reader.set_repo(repo, path or uri) reader.set_branch(config.branch) # Create parser if config.repo_logfile is not None: parser = create_parser_from_logfile(config.repo_logfile) reader.set_logfile(config.repo_logfile) else: parser = _get_parser_from_repository(repo) parser.set_repository(repo, uri) if parser is None: printerr("Failed to create parser") return 1 # TODO: check parser type == logfile type db_exists = False try:
import repositoryhandler repositoryhandler.backends.DEBUG = True path = uri_to_filename(uri) (uri, repo) = _get_uri_and_repo(path) if not config.no_parse: printdbg("Preparing logging") # Create reader reader = LogReader() reader.set_repo(repo, path or uri) reader.set_branch(config.branch) # Create parser if config.repo_logfile is not None: parser = create_parser_from_logfile(config.repo_logfile) reader.set_logfile(config.repo_logfile) else: parser = _get_parser_from_repository(repo) parser.set_repository(repo, uri) if parser is None: printerr("Failed to create parser") return 1 # TODO: check parser type == logfile type db_exists = False try:
print "(%s: %s) on branch %s" % (action.f2, action.rev, commit.branch or action.branch_f1) else: print "on branch %s" % (commit.branch or action.branch_f1) print "Message" print commit.message def new_line(line, user_data=None): user_data.feed(line) reader = LogReader() if os.path.isfile(sys.argv[1]): # Parser from logfile p = create_parser_from_logfile(sys.argv[1]) reader.set_logfile(sys.argv[1]) else: path = uri_to_filename(sys.argv[1]) if path is not None: repo = create_repository_from_path(path) else: repo = create_repository('svn', sys.argv[1]) path = sys.argv[1] p = create_parser_from_repository(repo) reader.set_repo(repo, path) p.set_content_handler(StdoutContentHandler()) reader.start(new_line, p) p.end()
print "%s %s " % (action.type, action.f1) if action.f2 is not None: print "(%s: %s) on branch %s" % (action.f2, action.rev, commit.branch or action.branch_f1) else: print "on branch %s" % (commit.branch or action.branch_f1) print "Message" print commit.message def new_line (line, user_data = None): user_data.feed (line) reader = LogReader () if os.path.isfile (sys.argv[1]): # Parser from logfile p = create_parser_from_logfile (sys.argv[1]) reader.set_logfile (sys.argv[1]) else: path = uri_to_filename (sys.argv[1]) if path is not None: repo = create_repository_from_path (path) else: repo = create_repository ('svn', sys.argv[1]) path = sys.argv[1] p = create_parser_from_repository (repo) reader.set_repo (repo, path) p.set_content_handler (StdoutContentHandler ()) reader.start (new_line, p) p.end ()