コード例 #1
0
def main():
    usage = """Usage: %prog REPOS TXN

Runs pre-commit verification on a repository transaction, verifying that
the commit message is descriptive."""
    parser = get_option_parser(usage)
    try:
        commit_details, repository_details = build_wrappers(parser)
        return check_commit_message(commit_details)
    except:
        parser.print_help()
        return 1
def main():
    usage = """Usage: %prog REPOS TXN

Runs pre-commit verification on a repository transaction, verifying that
the commit message is descriptive."""
    parser = get_option_parser(usage)
    try:
        commit_details, repository_details = build_wrappers(parser)
        return check_commit_message(commit_details)
    except:
        parser.print_help()
        return 1
コード例 #3
0
def main():
    usage = """Usage: %prog REPOS TXN

Runs pre-commit verification on a repository transaction, disallowing modification
of tagged files."""
    parser = get_option_parser(usage)
    try:
        commit_details, repository_details = build_wrappers(parser)
        return fail_on_tag_changes(commit_details)
    except:
        parser.print_help()
        return 1
コード例 #4
0
def main():
    usage = """Usage: %prog REPOS TXN

Runs pre-commit verification on a repository transaction, verifying that
matching files are added last, alphabetically."""
    parser = get_option_parser(usage)
    try:
        commit_details, repository_details = build_wrappers(parser)
        return check_filenames(commit_details, repository_details)
    except:
        parser.print_help()
        return 1