Module Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Num Num NameLoad Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str keyword Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad BinOpAdd NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg body Expr Str If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num Return NameLoad decorator_list decorator_list
N/A N/A os N/A fixtures N/A testtools git_restack.tests utils BaseGitRestackTestCase N/A N/A testtools TestCase N/A N/A Base class for the git-restack tests. setUp N/A N/A self N/A N/A N/A Configure testing environment.

        Prepare directory for the testing and clone test Git repository.
        Require Gerrit war file in the .gerrit directory to run Gerrit local.
         N/A N/A N/A N/A super BaseGitRestackTestCase self setUp N/A N/A N/A self useFixture N/A N/A fixtures Timeout N/A 2 60 True N/A N/A self root_dir N/A N/A N/A self useFixture N/A N/A fixtures TempDir path N/A N/A self upstream_dir N/A N/A N/A os path join N/A self root_dir upstream N/A N/A self local_dir N/A N/A N/A os path join N/A self root_dir local N/A N/A N/A os makedirs N/A N/A self _dir upstream N/A N/A N/A self _run_git upstream init N/A N/A N/A self _simple_change upstream initial text initial commit N/A N/A N/A self _simple_change upstream second text second commit N/A N/A N/A self _run_git upstream checkout -b branch1 N/A N/A N/A self _simple_change upstream branch1 text branch1 commit N/A N/A N/A self _run_git upstream checkout master N/A N/A N/A self _run_git upstream checkout -b branch2 N/A gitreview [gerrit]
defaultbranch=branch2
 N/A N/A N/A self _simple_change upstream gitreview branch2 commit file_ N/A N/A self _dir upstream .gitreview N/A N/A N/A self _run_git upstream checkout master N/A _dir N/A N/A self base N/A args N/A N/A Creates directory name from base name and other parameters. N/A N/A N/A N/A os path join N/A getattr self N/A base _dir args N/A _run_git N/A N/A self dirname command N/A args N/A N/A Run git command using test git directory. N/A N/A command clone N/A N/A N/A N/A utils run_git command N/A args N/A 0 N/A N/A self _dir dirname N/A N/A N/A utils run_git N/A --git-dir= N/A N/A self _dir dirname .git N/A --work-tree= N/A N/A self _dir dirname command args N/A _run_git_restack N/A N/A self N/A args kwargs N/A N/A Run git-restack utility from source. N/A git_restack N/A N/A utils run_cmd which git-restack N/A N/A N/A kwargs setdefault chdir N/A self local_dir N/A N/A N/A utils run_cmd git_restack args kwargs N/A _simple_change N/A N/A self dirname change_text commit_message file_ N/A None N/A N/A Helper method to create small changes and commit them. N/A N/A file_ None N/A N/A file_ N/A N/A self _dir dirname test_file.txt N/A N/A N/A utils write_to_file file_ N/A N/A change_text encode N/A N/A N/A self _run_git dirname add file_ N/A N/A N/A self _run_git dirname commit -m commit_message N/A _git_log N/A N/A self dirname N/A N/A N/A out N/A N/A self _run_git dirname log --oneline N/A commits N/A N/A line N/A N/A out split N/A N/A N/A N/A commits append N/A N/A line split 1 N/A commits N/A N/A