Module ImportFrom alias Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias If CompareLt AttributeLoad NameLoad attr Str body Import alias Import alias Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad orelse Import alias identifier Import alias Import alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad keyword Str ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListLoad TupleLoad Str Call AttributeLoad Str attr AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr TupleLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpAdd AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num decorator_list FunctionDef arguments args defaults vararg kwarg body If NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad Str attr NameLoad If CompareEq Call NameLoad NameLoad Num body If BoolOpAnd CompareLt AttributeLoad NameLoad attr TupleLoad Num Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body If NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad Str attr NameLoad If CompareEq Call NameLoad NameLoad Num body If BoolOpAnd CompareLt AttributeLoad NameLoad attr TupleLoad Num Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str orelse Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword IfExp NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Return TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults vararg kwarg body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If CompareNotEq NameLoad Num body Raise Call NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore TupleLoad Str Str Str Str Assign NameStore Call NameLoad NameLoad NameLoad TryExcept body Return Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Num NameLoad NameLoad Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad Str Str Str BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Num Str If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Assign SubscriptStore NameLoad Slice Num Num ListLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str TryExcept body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr Num body Return NameLoad Raise decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore IfExp NameLoad ListLoad ListLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareNotEq NameLoad NameLoad body Assign NameStore Str Expr Call NameLoad BinOpMod NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str 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 BinOpMod Str TupleLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num Call NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad TryExcept body Assign TupleStore NameStore NameStore Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Pass orelse Assign NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Raise NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Global identifier Assign NameStore AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Str Assign NameStore Num Assign NameStore BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad BinOpMod Str NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A __future__ print_function N/A COPYRIGHT Copyright (C) 2011-2012 OpenStack LLC.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.

See the License for the specific language governing permissions and
limitations under the License. N/A argparse N/A datetime N/A os N/A shlex N/A subprocess N/A sys N/A pkg_resources N/A N/A N/A sys version 3 N/A N/A ConfigParser N/A urllib N/A urlparse N/A urlencode N/A urllib urlencode N/A urljoin N/A urlparse urljoin N/A urlparse N/A urlparse urlparse N/A do_input raw_input N/A N/A configparser ConfigParser N/A urllib.parse N/A urllib.request N/A urlencode N/A N/A urllib parse urlencode N/A urljoin N/A N/A urllib parse urljoin N/A urlparse N/A N/A urllib parse urlparse N/A do_input input N/A VERBOSE False N/A UPDATE False N/A LOCAL_MODE N/A GITREVIEW_LOCAL_MODE N/A os environ N/A CONFIGDIR N/A N/A N/A os path expanduser ~/.config/git-review N/A GLOBAL_CONFIG /etc/git-review/git-review.conf N/A USER_CONFIG N/A N/A N/A os path join CONFIGDIR git-review.conf N/A DEFAULTS N/A dict branch master GitRestackException N/A Exception N/A N/A N/A CommandFailed N/A GitRestackException N/A __init__ N/A N/A self N/A args N/A N/A N/A N/A Exception __init__ self args N/A N/A N/A self rc N/A self output N/A self argv N/A self envp args N/A N/A self quickmsg N/A dict N/A N/A argv N/A N/A join N/A self argv N/A rc N/A self rc N/A output N/A self output N/A __str__ N/A N/A self N/A N/A N/A N/A N/A self __doc__ N/A 
The following command failed with exit code %(rc)d
    "%(argv)s"
-----------------------
%(output)s
----------------------- N/A self quickmsg N/A N/A GitDirectoriesException N/A CommandFailed N/A N/A Cannot determine where .git directory is. N/A EXIT_CODE 70 N/A GitMergeBaseException N/A CommandFailed N/A N/A Cannot determine merge base. N/A EXIT_CODE 71 N/A GitConfigException N/A CommandFailed N/A N/A Git config value retrieval failed. N/A EXIT_CODE 128 N/A run_command_foreground N/A N/A N/A argv kwargs N/A N/A VERBOSE N/A N/A N/A print N/A N/A N/A datetime datetime now Running: N/A N/A join argv N/A N/A N/A len argv 1 N/A N/A N/A N/A N/A sys version_info N/A 3 N/A isinstance N/A argv N/A 0 unicode N/A N/A argv N/A N/A shlex split N/A N/A N/A argv N/A 0 encode utf-8 N/A N/A argv N/A N/A shlex split N/A str N/A argv N/A 0 N/A N/A N/A subprocess call argv N/A run_command_status N/A N/A N/A argv kwargs N/A N/A VERBOSE N/A N/A N/A print N/A N/A N/A datetime datetime now Running: N/A N/A join argv N/A N/A N/A len argv 1 N/A N/A N/A N/A N/A sys version_info N/A 3 N/A isinstance N/A argv N/A 0 unicode N/A N/A argv N/A N/A shlex split N/A N/A N/A argv N/A 0 encode utf-8 N/A N/A argv N/A N/A shlex split N/A str N/A argv N/A 0 N/A stdin N/A N/A kwargs pop stdin None N/A newenv N/A N/A N/A os environ copy N/A N/A newenv N/A LANG C N/A N/A newenv N/A LANGUAGE C N/A N/A N/A newenv update kwargs N/A p N/A N/A subprocess Popen argv stdin N/A stdin N/A subprocess PIPE None stdout N/A subprocess PIPE stderr N/A subprocess STDOUT env newenv N/A N/A out nothing N/A N/A p communicate stdin N/A out N/A N/A out decode utf-8 replace N/A N/A N/A p returncode N/A N/A out strip N/A run_command N/A N/A N/A argv kwargs N/A N/A N/A rc output N/A run_command_status argv kwargs N/A output N/A run_command_exc N/A N/A klazz N/A argv env N/A N/A Run command *argv, on failure raise klazz

    klazz should be derived from CommandFailed
     N/A N/A rc output N/A run_command_status argv env N/A N/A rc 0 N/A N/A N/A klazz rc output argv env N/A output N/A get_version N/A N/A N/A N/A N/A requirement N/A N/A N/A pkg_resources Requirement parse git-restack N/A provider N/A N/A pkg_resources get_provider requirement N/A N/A provider version N/A git_directories N/A N/A N/A N/A N/A Determine (absolute git work directory path, .git subdirectory path). N/A cmd N/A git rev-parse --show-toplevel --git-dir N/A out N/A run_command_exc GitDirectoriesException cmd N/A N/A N/A N/A N/A out splitlines N/A N/A N/A ValueError N/A N/A N/A GitDirectoriesException 0 out cmd N/A N/A git_config_get_value N/A N/A section option default as_bool N/A None False N/A N/A Get config value for section/option. N/A cmd N/A git config --get N/A %s.%s N/A section option N/A as_bool N/A N/A N/A N/A cmd insert 2 --bool N/A LOCAL_MODE N/A N/A N/A __ git_dir N/A git_directories N/A N/A cmd N/A 2 2 N/A -f N/A N/A N/A os path join git_dir config N/A N/A N/A N/A N/A N/A run_command_exc GitConfigException cmd strip N/A N/A N/A GitConfigException N/A exc N/A N/A N/A N/A exc rc 1 N/A N/A default N/A N/A Config N/A object N/A N/A Expose as dictionary configuration options. __init__ N/A N/A self config_file N/A None N/A N/A N/A self config N/A N/A DEFAULTS copy N/A filenames N/A LOCAL_MODE N/A N/A GLOBAL_CONFIG USER_CONFIG N/A config_file N/A N/A N/A N/A filenames append config_file N/A filename filenames N/A N/A N/A N/A N/A os path exists filename N/A N/A N/A filename config_file N/A N/A msg Using global/system git-review config files (%s) is deprecated N/A N/A print N/A msg filename N/A N/A N/A N/A self config update N/A load_config_file filename N/A __getitem__ N/A N/A self key N/A N/A N/A value N/A git_config_get_value gitreview key N/A N/A value None N/A N/A value N/A N/A self config N/A key N/A value N/A N/A load_config_file N/A N/A config_file N/A N/A N/A Load configuration options from a file. N/A configParser N/A N/A ConfigParser ConfigParser N/A N/A N/A configParser read config_file N/A options N/A scheme hostname port project branch remote rebase track usepushurl scheme host port project defaultbranch defaultremote defaultrebase track usepushurl N/A config N/A N/A N/A config_key option_name N/A N/A options items N/A N/A N/A N/A configParser has_option gerrit option_name N/A N/A N/A config N/A config_key N/A N/A configParser get gerrit option_name N/A config N/A main N/A N/A N/A N/A N/A usage git restack [BRANCH] N/A parser N/A N/A argparse ArgumentParser usage usage description COPYRIGHT N/A N/A N/A parser add_argument -v --verbose dest verbose action store_true help Output more information about what's going on N/A N/A N/A parser add_argument --license dest license action store_true help Print the license and exit N/A N/A N/A parser add_argument --version action version version N/A %s version %s N/A N/A N/A N/A N/A os path split N/A N/A sys argv N/A 0 N/A -1 N/A get_version N/A N/A N/A parser add_argument branch nargs ? N/A N/A N/A parser set_defaults verbose False N/A N/A N/A N/A top_dir git_dir N/A git_directories N/A N/A N/A GitDirectoriesException N/A no_git_dir N/A N/A N/A N/A no_git_dir False N/A config N/A Config N/A N/A N/A os path join top_dir .gitreview N/A options N/A N/A parser parse_args N/A no_git_dir N/A N/A no_git_dir N/A N/A options license N/A N/A N/A print COPYRIGHT N/A N/A N/A sys exit 0 N/A VERBOSE N/A VERBOSE N/A options verbose N/A N/A N/A options branch None N/A N/A branch N/A config N/A branch N/A N/A branch N/A options branch N/A N/A branch None N/A N/A branch master N/A status 0 N/A cmd N/A git merge-base HEAD origin/%s branch N/A base N/A run_command_exc GitMergeBaseException cmd N/A N/A run_command_foreground N/A git rebase -i %s base stdin N/A sys stdin N/A N/A N/A sys exit status N/A N/A N/A __name__ __main__ N/A N/A N/A main