Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str If Call AttributeLoad NameLoad attr NameLoad body Return SubscriptLoad NameLoad Slice Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str BinOpMod Str TupleLoad NameLoad NameLoad Return Call AttributeLoad Call NameLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Str Str NameLoad Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr attr Str Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad CompareNotEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr Str Str attr Str Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str NameLoad Return Call AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore BinOpMult Str Num For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad NameLoad body Continue If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad For NameStore NameLoad body If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Slice BinOpSub Call AttributeLoad NameLoad attr Str Num If CompareIn NameLoad NameLoad body Continue Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num Num Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A six collections defaultdict copy deepcopy rbtools.hooks.common execute get_review_request_id get_branch_name N/A N/A ref_name N/A N/A N/A Returns the branch name corresponding to the specified ref name. N/A branch_ref_prefix refs/heads/ N/A N/A N/A ref_name startswith branch_ref_prefix N/A N/A N/A ref_name N/A N/A len branch_ref_prefix N/A get_commit_hashes N/A N/A old_rev new_rev N/A N/A N/A Returns a list of abbreviated commit hashes from old_rev to new_rev. N/A git_command N/A git rev-list --abbrev-commit --reverse N/A %s..%s N/A old_rev new_rev N/A N/A N/A N/A execute git_command split N/A get_unique_commit_hashes N/A N/A ref_name new_rev N/A N/A N/A Returns a list of abbreviated commit hashes unique to ref_name. N/A git_command N/A git rev-list new_rev --abbrev-commit --reverse --not N/A N/A N/A git_command extend N/A get_excluded_branches ref_name N/A N/A N/A N/A N/A N/A execute git_command strip split N/A get_excluded_branches N/A N/A ref_name N/A N/A N/A Returns a list of all branches, excluding the specified branch. N/A git_command N/A git for-each-ref refs/heads/ --format=%(refname) N/A all_branches N/A N/A N/A N/A N/A execute git_command strip split N/A N/A N/A N/A branch strip N/A branch all_branches N/A branch ref_name N/A get_branches_containing_commit N/A N/A commit_hash N/A N/A N/A Returns a list of all branches containing the specified commit. N/A git_command N/A git branch --contains commit_hash N/A branches N/A N/A N/A N/A N/A execute git_command replace * split N/A N/A N/A N/A branch strip N/A branch branches N/A get_commit_message N/A N/A commit N/A N/A N/A Returns the specified commit's commit message. N/A git_command N/A git show -s --pretty=format:%B commit N/A N/A N/A N/A execute git_command strip N/A get_review_id_to_commits_map N/A N/A lines regex N/A N/A N/A Returns a dictionary, mapping a review request ID to a list of commits.

    The commits must be in the form: oldrev newrev refname (separated by
    newlines), as given by a Git pre-receive or post-receive hook.

    If a commit's commit message does not contain a review request ID, we
    append the commit to the key 0.
     N/A review_id_to_commits_map N/A defaultdict list N/A new_branches N/A N/A null_sha1 N/A 0 40 N/A line lines N/A N/A N/A old_rev new_rev ref_name N/A N/A line split N/A branch_name N/A get_branch_name ref_name N/A N/A N/A branch_name N/A new_rev null_sha1 N/A N/A N/A N/A old_rev null_sha1 N/A N/A N/A N/A new_branches append branch_name N/A commit_hashes N/A get_unique_commit_hashes ref_name new_rev N/A N/A commit_hashes N/A get_commit_hashes old_rev new_rev N/A commit_hash commit_hashes N/A N/A commit_hash N/A N/A commit_message N/A get_commit_message commit_hash N/A review_request_id N/A get_review_request_id regex commit_message N/A commit N/A %s (%s) N/A branch_name commit_hash N/A N/A N/A N/A review_id_to_commits_map N/A review_request_id append commit N/A new_branches N/A N/A review_id_to_commits_map_copy N/A deepcopy review_id_to_commits_map N/A N/A review_id commit_list N/A N/A six iteritems review_id_to_commits_map_copy N/A N/A commit commit_list N/A N/A commit_branch N/A commit N/A N/A N/A N/A commit find ( 1 N/A N/A commit_branch new_branches N/A N/A N/A commit_hash N/A commit N/A N/A N/A N/A commit find ( 1 -1 N/A commit_branches N/A get_branches_containing_commit commit_hash N/A branch N/A N/A N/A set new_branches intersection commit_branches N/A N/A new_commit N/A %s (%s) N/A branch commit_hash N/A N/A N/A N/A review_id_to_commits_map N/A review_id append new_commit N/A review_id_to_commits_map N/A