Module ImportFrom alias ImportFrom alias alias alias Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Import alias Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword ListLoad Str keyword BinOpAdd Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword ListLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword ListLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults TupleLoad body Assign NameStore Call NameLoad For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Str Call AttributeLoad Str attr keyword NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Continue Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Slice Num Assign NameStore ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call NameLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp Call NameLoad keyword NameLoad keyword NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad NameLoad Str Str keyword NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Str Str Return TupleLoad SubscriptLoad NameLoad Slice NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call NameLoad ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr body Return For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpOr Call NameLoad ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Call NameLoad ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Assign TupleStore NameStore NameStore SubscriptLoad Call NameLoad Str Slice Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad ListLoad NameLoad TryFinally body While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad Call NameLoad BinOpAdd AttributeLoad NameLoad attr Str Index Num If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad finalbody Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad If CompareLt NameLoad NameLoad body AugAssignAdd NameStore BinOpSub NameLoad NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return TupleLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad decorator_list Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad keyword NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If CompareGt Call NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice BinOpSub NameLoad Num Str Expr Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num NameLoad SubscriptLoad NameLoad Slice Num Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Return If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Pass decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A __future__ print_function pandas.compat range lrange map N/A Search the git history for all commits touching a named method

You need the sh module to run this
WARNING: this script uses git clean -f, running it on a repo with untracked files
will probably erase them.
 N/A logging N/A re N/A os collections namedtuple pandas.compat parse_date N/A N/A N/A sh N/A N/A N/A ImportError N/A N/A N/A ImportError The 'sh' package is required in order to run this script.  N/A argparse N/A desc N/A N/A 
Find all commits touching a sepcified function across the codebase.
 strip N/A argparser N/A N/A argparse ArgumentParser description desc N/A N/A N/A argparser add_argument funcname metavar FUNCNAME help Name of function/method to search for changes on. N/A N/A N/A argparser add_argument -f --file-masks metavar f_re(,f_re)* default N/A \.py.?$ help N/A comma seperated list of regexes to match filenames against
 defaults all .py? files N/A N/A N/A argparser add_argument -d --dir-masks metavar d_re(,d_re)* default N/A help comma seperated list of regexes to match base path against N/A N/A N/A argparser add_argument -p --path-masks metavar p_re(,p_re)* default N/A help comma seperated list of regexes to match full file path against N/A N/A N/A argparser add_argument -y --saw-the-warning action store_true default False help must specify this to run, acknowledge you realize this will erase untracked files N/A N/A N/A argparser add_argument --debug-level default CRITICAL help debug level of messages (DEBUG,INFO,etc...) N/A args N/A N/A argparser parse_args N/A lfmt N/A N/A logging Formatter fmt %(levelname)-8s %(message)s datefmt %m-%d %H:%M:%S N/A shh N/A N/A logging StreamHandler N/A N/A N/A shh setFormatter lfmt N/A logger N/A N/A logging getLogger findit N/A N/A N/A logger addHandler shh N/A Hit N/A namedtuple Hit commit path N/A HASH_LEN 8 clean_checkout N/A N/A comm N/A N/A N/A N/A h s d N/A get_commit_vitals comm N/A N/A N/A len s 60 N/A N/A s N/A N/A s N/A 60 ... N/A s N/A N/A N/A s split N/A 0 N/A N/A N/A logger info N/A CO: %s %s N/A comm s N/A N/A N/A sh git checkout comm _tty_out False N/A N/A N/A sh git clean -f N/A get_hits N/A N/A defname files N/A N/A N/A N/A cs N/A set N/A f files N/A N/A N/A N/A r N/A N/A sh git blame -L N/A N/A /def\s*{start}/,/def/ format start defname f _tty_out False N/A N/A N/A N/A sh ErrorReturnCode_128 N/A N/A N/A N/A logger debug N/A no matches in %s f N/A N/A lines N/A N/A N/A N/A N/A r strip splitlines N/A -1 N/A lines N/A x N/A x lines N/A N/A N/A re search ^\w+\s*\(.+\)\s*# x N/A hits N/A set N/A map N/A N/A N/A x N/A N/A N/A N/A x split N/A 0 lines N/A N/A N/A cs update N/A set N/A N/A Hit commit c path f N/A c hits N/A cs N/A get_commit_info N/A N/A c fmt sep N/A N/A N/A r N/A N/A sh git log N/A N/A --format={} format fmt N/A N/A {}^..{} format c c -n 1 _tty_out False N/A N/A N/A N/A N/A compat text_type r split sep N/A get_commit_vitals N/A N/A c hlen N/A HASH_LEN N/A N/A N/A h s d N/A get_commit_info c %H	%s	%ci N/A N/A N/A h N/A hlen s N/A parse_date d N/A file_filter N/A N/A state dirname fnames N/A N/A N/A N/A N/A args dir_masks N/A N/A any N/A N/A N/A re search x dirname N/A x N/A args dir_masks N/A N/A N/A f fnames N/A N/A p N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path realpath dirname f N/A N/A N/A any N/A N/A N/A re search x f N/A x N/A args file_masks N/A any N/A N/A N/A re search x p N/A x N/A args path_masks N/A N/A N/A N/A N/A os path isfile p N/A N/A N/A N/A N/A state N/A files append p N/A search N/A N/A defname head_commit N/A HEAD N/A N/A N/A HEAD s N/A N/A get_commit_vitals HEAD N/A 2 N/A N/A N/A logger info N/A HEAD at %s: %s N/A HEAD s N/A done_commits N/A set N/A files N/A N/A state N/A dict files files N/A N/A N/A N/A os path walk . file_filter state N/A allhits N/A set N/A get_hits defname files files N/A q N/A set N/A HEAD N/A N/A N/A q N/A N/A h N/A N/A q pop N/A N/A clean_checkout h N/A hits N/A get_hits defname files files N/A x hits N/A N/A prevc N/A N/A get_commit_vitals N/A N/A x commit ^ N/A 0 N/A N/A prevc done_commits N/A N/A N/A N/A q add prevc N/A N/A N/A allhits update hits N/A N/A N/A done_commits add h N/A N/A N/A logger debug N/A Remaining: %s q N/A N/A N/A N/A logger info N/A Restoring HEAD to %s HEAD N/A N/A clean_checkout HEAD N/A allhits N/A pprint_hits N/A N/A hits N/A N/A N/A SUBJ_LEN 50 N/A PATH_LEN 20 N/A hits N/A list hits N/A max_p 0 N/A hit hits N/A N/A p N/A N/A N/A N/A hit path split N/A N/A N/A N/A os path realpath N/A os curdir N/A N/A os path sep N/A -1 N/A max_p N/A max max_p N/A len p N/A N/A max_p PATH_LEN N/A N/A SUBJ_LEN N/A PATH_LEN max_p N/A PATH_LEN max_p sorter N/A N/A i N/A N/A N/A N/A h s d N/A get_commit_vitals N/A N/A hits N/A i commit N/A N/A N/A N/A hits N/A i path d N/A N/A N/A print N/A 
These commits touched the %s method in these files on these dates:
 N/A args funcname N/A i N/A sorted N/A lrange N/A len hits key sorter N/A N/A hit N/A hits N/A i N/A N/A h s d N/A get_commit_vitals N/A hit commit N/A p N/A N/A N/A N/A hit path split N/A N/A N/A N/A os path realpath N/A os curdir N/A N/A os path sep N/A -1 N/A fmt N/A {:%d} {:10} {:<%d} {:<%d} N/A HASH_LEN SUBJ_LEN PATH_LEN N/A N/A N/A len s SUBJ_LEN N/A N/A s N/A N/A s N/A N/A SUBJ_LEN 5  ... N/A N/A print N/A N/A fmt format N/A h N/A HASH_LEN N/A N/A N/A d isoformat N/A 10 s N/A p N/A -20 N/A N/A print N/A main N/A N/A N/A N/A N/A N/A N/A args saw_the_warning N/A N/A N/A N/A argparser print_help N/A N/A print 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: this script uses git clean -f, running it on a repo with untracked files.
It's recommended that you make a fresh clone and run from its root directory.
You must specify the -y argument to ignore this warning.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 N/A N/A N/A isinstance N/A args file_masks N/A compat string_types N/A N/A N/A args file_masks N/A N/A N/A args file_masks split , N/A N/A isinstance N/A args path_masks N/A compat string_types N/A N/A N/A args path_masks N/A N/A N/A args path_masks split , N/A N/A isinstance N/A args dir_masks N/A compat string_types N/A N/A N/A args dir_masks N/A N/A N/A args dir_masks split , N/A N/A N/A logger setLevel N/A getattr logging N/A args debug_level N/A hits N/A search N/A args funcname N/A N/A pprint_hits hits N/A N/A N/A N/A __name__ __main__ N/A N/A sys N/A N/A N/A sys exit N/A main