Module ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad ListLoad Str Str NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call NameLoad BinOpMod Str Call AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd NameStore NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Return TupleLoad NameLoad NameLoad If CompareNotEq NameLoad Num body Expr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Return Call NameLoad BinOpAdd ListLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body If CompareLtE Call NameLoad AttributeLoad NameLoad attr Num body Expr Call NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call NameLoad Str Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num For NameStore NameLoad body Assign NameStore SubscriptLoad Call NameLoad ListLoad Str Str NameLoad keyword NameLoad keyword NameLoad Index Num If CompareNotEq NameLoad Num body Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad ListLoad Str Str Str BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call NameLoad ListLoad Str Str NameLoad Expr Call NameLoad Expr Call NameLoad ListLoad Str Str Str Expr Call NameLoad ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ print_function unicode_literals N/A os N/A shutil N/A subprocess N/A sys N/A tempfile optparse OptionParser N/A options None die N/A N/A msg N/A N/A N/A N/A N/A N/A sys stderr write msg N/A N/A N/A sys exit 1 N/A clone_git_tree N/A N/A git_dir N/A N/A N/A new_git_dir N/A N/A tempfile mkdtemp prefix reviewboard-test-upgrade. N/A N/A N/A os chdir new_git_dir N/A N/A execute N/A git clone git_dir . N/A new_git_dir N/A execute N/A N/A cmdline return_errcode show_output N/A False True N/A N/A N/A isinstance cmdline list N/A N/A N/A print N/A >>> %s N/A N/A subprocess list2cmdline cmdline N/A N/A N/A print N/A >>> %s cmdline N/A p N/A N/A subprocess Popen cmdline shell False stdout N/A subprocess PIPE N/A s N/A data N/A N/A N/A p stdout readlines N/A N/A s data N/A show_output N/A N/A N/A N/A N/A sys stdout write data N/A rc N/A N/A p wait N/A return_errcode N/A N/A N/A s rc N/A N/A rc 0 N/A N/A N/A die !!! Error invoking command. N/A s N/A run_python N/A N/A cmdline N/A args kwargs N/A N/A N/A execute N/A N/A N/A sys executable cmdline args kwargs N/A clean_pyc N/A N/A N/A N/A N/A N/A root dirs files N/A N/A os walk N/A N/A os getcwd N/A N/A filename files N/A N/A N/A N/A filename endswith .pyc N/A N/A N/A N/A os unlink N/A N/A N/A os path join root filename N/A parse_options N/A N/A args N/A N/A N/A options N/A parser N/A OptionParser usage %prog [options] N/A N/A N/A parser add_option --database-type dest db_type default sqlite3 help Database type (postgresql, mysql, sqlite3) N/A N/A N/A parser add_option --database-name dest db_name default reviewboard.db help Database name (or path, for sqlite3) N/A N/A N/A parser add_option --database-user dest db_user default help Database user N/A N/A N/A parser add_option --database-password dest db_password default help Database password N/A N/A options args N/A N/A parser parse_args args N/A args N/A main N/A N/A N/A N/A N/A N/A N/A len N/A sys argv 2 N/A N/A N/A die Usage: test-upgrade.py branch1 branch2 [branchN...]
 N/A N/A N/A N/A N/A os path exists setup.py N/A N/A N/A die This must be run from the root of the Review Board tree.
 N/A branches N/A parse_options N/A N/A sys argv N/A 1 N/A branch branches N/A N/A errcode N/A N/A execute N/A git rev-parse branch return_errcode True show_output False N/A 1 N/A N/A errcode 0 N/A N/A N/A die N/A Unable to resolve branch %s
 branch N/A cur_dir N/A N/A os getcwd N/A git_dir N/A clone_git_tree cur_dir N/A N/A print N/A Review Board cloned to %s git_dir N/A N/A run_python N/A ./contrib/internal/prepare-dev.py --no-media --no-db N/A --database-type=%s N/A options db_type N/A --database-name=%s N/A options db_name N/A --database-user=%s N/A options db_user N/A --database-password=%s N/A options db_password N/A branch branches N/A N/A N/A execute N/A git checkout branch N/A N/A clean_pyc N/A N/A run_python N/A ./reviewboard/manage.py syncdb --noinput N/A N/A run_python N/A ./reviewboard/manage.py evolve --execute --noinput N/A N/A N/A os chdir cur_dir N/A N/A N/A shutil rmtree git_dir N/A N/A print N/A N/A print *** N/A N/A print *** Success! N/A N/A print *** N/A N/A N/A __name__ __main__ N/A N/A N/A main