Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad body Return Call NameLoad NameLoad orelse If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Str While BoolOpAnd NameLoad CompareNotEq NameLoad Str body If Call NameLoad NameLoad body Return Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr NameLoad Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore NameLoad While NameLoad body If Call NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Break Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Break Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Break If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call NameLoad Call AttributeLoad NameLoad attr Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If Call NameLoad NameLoad body Return Call NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore ListLoad NameLoad Assign NameStore ListLoad While CompareNotEq NameLoad ListLoad body Assign NameStore Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad NameLoad body Raise Call NameLoad NameLoad If CompareIn NameLoad NameLoad body Continue Assign NameStore Num For NameStore NameLoad body If CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Break AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore ListComp Call NameLoad NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Return ListLoad If BoolOpAnd CompareIsNot NameLoad NameLoad NameLoad body TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad Call AttributeLoad NameLoad attr Str attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Num Assign NameStore Dict For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr While NameLoad body For NameStore Call AttributeLoad NameLoad attr keyword NameLoad body If CompareNotIn AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return ListComp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A os N/A re N/A time N/A tempfile N/A traceback datetime datetime dulwich.repo Repo dulwich.objects Blob Tree Commit grit.repo Proxy grit.repo Item Version grit.util touch is_git_dir grit.util serialize deserialize grit.cmd Git grit.exc * grit.log log N/A __all__ N/A is_repo get_repos get_repo_parent Local is_repo N/A N/A path N/A N/A N/A :return: True if path is a valid repository N/A N/A is_git_dir path N/A get_repos N/A N/A path N/A N/A N/A 
    Returns list of found branches.

    :return: List of grit.Local objects
     N/A p N/A str path N/A ret N/A N/A N/A N/A N/A N/A os path exists p N/A N/A ret N/A d N/A N/A os listdir p N/A N/A pd N/A N/A N/A os path join p d N/A N/A N/A N/A N/A os path exists pd N/A is_repo pd N/A N/A N/A N/A ret append N/A Local pd N/A ret N/A get_repo_parent N/A N/A path N/A N/A N/A 
    Returns parent repo or input path if none found.

    :return: grit.Local or path
     N/A N/A is_repo path N/A N/A N/A Local path N/A N/A N/A N/A N/A N/A os path isdir path N/A N/A _rel N/A N/A path N/A path / N/A N/A N/A is_repo path N/A N/A N/A Local path N/A N/A _rel N/A N/A N/A os path join N/A N/A N/A os path basename path _rel N/A path N/A N/A N/A os path dirname path N/A path N/A Local N/A Repo N/A N/A Local repository class. __init__ N/A N/A self path N/A None N/A N/A 
        Create a new repo.Local instance.

        :param path: local path to valid git repository. 

        :returns: repo.Local instance.
         N/A path N/A N/A N/A os path abspath N/A N/A N/A os path expandvars N/A N/A N/A os path expanduser N/A path N/A N/A os getcwd N/A N/A N/A N/A N/A os path exists path N/A N/A N/A RepoError N/A Invalid path: %s path N/A curpath path N/A curpath N/A N/A N/A is_git_dir curpath N/A N/A N/A self git_dir curpath N/A N/A self _working_tree_dir N/A N/A N/A os path dirname curpath N/A N/A gitpath N/A N/A N/A os path join curpath .git N/A N/A is_git_dir gitpath N/A N/A N/A self git_dir gitpath N/A N/A self _working_tree_dir curpath N/A N/A N/A curpath dummy N/A N/A N/A os path split curpath N/A N/A dummy N/A N/A N/A N/A N/A is_repo N/A self git_dir N/A N/A N/A RepoError N/A Invalid path: %s path N/A N/A N/A N/A super Local self __init__ N/A self git_dir N/A N/A self name N/A N/A N/A os path basename path N/A N/A self path path N/A N/A self abspath N/A N/A N/A os path abspath N/A self path N/A N/A self user N/A self author N/A N/A self comment N/A self message N/A N/A self type local N/A N/A self is_bare N/A self bare N/A __str__ N/A N/A self N/A N/A N/A N/A str N/A self path N/A __repr__ N/A N/A self N/A N/A N/A N/A <grit.Local "%s"> N/A self path N/A __getattr__ N/A N/A self key N/A args kwargs N/A N/A N/A getattr N/A N/A self versions -1 key None N/A _get_parent N/A N/A self N/A N/A N/A :return: Remote origin as Proxy instance N/A _dir N/A N/A N/A os path dirname N/A self path N/A N/A is_repo _dir N/A N/A N/A Local _dir N/A N/A None N/A _set_parent N/A N/A self N/A N/A N/A NotImplementedError N/A N/A parent N/A property _get_parent _set_parent isLocal N/A N/A self N/A N/A N/A True N/A git N/A N/A self N/A N/A N/A git command object N/A N/A N/A Git N/A self git_dir args kwargs N/A property date N/A N/A self N/A N/A N/A :return: datetime object N/A N/A self commit_time N/A N/A N/A N/A datetime utcfromtimestamp N/A self commit_time N/A N/A N/A N/A datetime now N/A property addVersion N/A N/A self N/A N/A N/A 
        Creates a new Version, to which Items can be added and removed, and
        committed.

        :return: New Version instance.
         N/A N/A N/A Version new self N/A setVersion N/A N/A self version N/A N/A N/A 
        Checkout a version of the repo.

        :param version: Version number.
         N/A N/A N/A sha N/A N/A N/A N/A self versions version commit sha N/A N/A N/A N/A self git reset --hard sha N/A N/A N/A Exception N/A e N/A N/A N/A RepoError e N/A _commits N/A N/A self head N/A HEAD N/A N/A Returns a list of the commits reachable from head.

        :return: List of commit objects. the first of which will be the commit
        of head, then following theat will be the parents.

        :raise: RepoError if any no commits are referenced, including if the
        head parameter isn't the sha of a commit.
         N/A pending_commits N/A head N/A history N/A N/A N/A pending_commits N/A N/A N/A head N/A N/A pending_commits pop 0 N/A N/A N/A commit N/A self N/A head N/A N/A N/A KeyError N/A N/A N/A KeyError head N/A N/A N/A type commit Commit N/A N/A N/A TypeError commit N/A N/A commit history N/A N/A N/A i 0 N/A known_commit history N/A N/A N/A N/A known_commit commit_time N/A commit commit_time N/A N/A N/A i 1 N/A N/A N/A history insert i commit N/A pending_commits N/A commit parents N/A history N/A versions N/A N/A self version N/A None N/A N/A 
        List of Versions of this repository.

        :param version: Version index.
        :param rev: Commit sha or ref.

        :return: List of Version objects matching params.
         N/A N/A N/A versions N/A N/A Version self c N/A c N/A N/A self _commits N/A N/A N/A Exception N/A e N/A N/A N/A N/A log debug No versions exist N/A N/A N/A N/A N/A version None versions N/A N/A N/A N/A versions N/A versions N/A version N/A N/A N/A IndexError N/A N/A N/A VersionError N/A Version %s does not exist version N/A versions N/A getDescription N/A N/A self N/A N/A N/A :returns: repository description N/A N/A N/A N/A N/A N/A N/A self get_named_file description read N/A N/A N/A Exception N/A e N/A N/A N/A RepoError e N/A setDescription N/A N/A self desc N/A No description N/A N/A sets repository description N/A N/A N/A N/A N/A self _put_named_file description desc N/A N/A N/A Exception N/A e N/A N/A N/A RepoError e N/A tag N/A N/A self name message N/A None N/A N/A NotImplementedError N/A tags N/A N/A self N/A N/A N/A NotImplementedError N/A delete N/A N/A self N/A N/A N/A N/A N/A os system N/A rm -rf %s N/A self abspath N/A new N/A N/A self path desc bare N/A None True N/A N/A 
        Create a new bare repo.Local instance.

        :param path: Path to new repo.
        :param desc: Repo description.
        :param bare: Create as bare repo.

        :returns: New repo.Local instance.
         N/A N/A N/A N/A os path exists path N/A N/A N/A RepoError N/A Path already exists: %s path N/A N/A N/A N/A N/A os mkdir path N/A bare N/A N/A N/A N/A Repo init_bare path N/A N/A N/A N/A Repo init path N/A repo N/A Local path N/A desc N/A N/A N/A N/A repo setDescription desc N/A version N/A N/A repo addVersion N/A N/A N/A version save Repo Initialization N/A repo N/A N/A N/A Exception N/A e N/A N/A N/A N/A traceback print_exc N/A N/A RepoError Error creating repo N/A classmethod branch N/A N/A self name desc N/A None N/A N/A 
        Create a branch of this repo at 'name'.

        :param name: Name of new branch
        :param desc: Repo description.

        :return: New Local instance.
         N/A N/A N/A Local new path N/A N/A N/A os path join N/A self path name desc desc bare True N/A addFile N/A N/A self path msg N/A None N/A N/A add a new file(s) N/A item N/A N/A Item from_path repo self path path N/A N/A N/A self addItem item msg N/A addItem N/A N/A self item message N/A None N/A N/A add a new Item class object N/A N/A message None N/A N/A message N/A Adding item %s N/A item path N/A N/A N/A v N/A N/A Version new repo self N/A N/A N/A v addItem item N/A N/A N/A v save message N/A N/A N/A VersionError N/A e N/A N/A N/A RepoError e N/A iteritems N/A N/A self N/A N/A N/A N/A items N/A N/A self path version N/A None None N/A N/A 
        Returns a list of items.

        :param path: Regex filter on item path.
        :param version: Repo versions number/index.

        :return: List of Item class objects.
         N/A N/A version None N/A N/A version -1 N/A items N/A N/A item N/A N/A N/A N/A self versions version items N/A N/A N/A items N/A N/A item path item N/A parent N/A self parent N/A parent N/A N/A item N/A N/A parent items path path N/A N/A N/A N/A item path N/A N/A items keys N/A N/A N/A items N/A N/A item path item N/A parent N/A parent parent N/A N/A path None N/A N/A path $ N/A regex N/A N/A re compile path N/A N/A item N/A N/A path item N/A N/A items items N/A N/A regex match path N/A N/A N/A N/A items values N/A addSubmodule N/A N/A self url name path N/A None None N/A N/A NotImplementedError N/A submodules N/A N/A self name N/A None N/A N/A NotImplementedError N/A data N/A N/A self N/A N/A N/A NotImplementedError N/A pull N/A N/A self N/A N/A N/A N/A N/A N/A self git pull -s ours N/A push N/A N/A self N/A N/A N/A N/A N/A N/A self git push origin master N/A serialize N/A N/A self N/A N/A N/A d N/A self __dict__ N/A N/A d N/A desc N/A N/A self getDescription N/A N/A d N/A date N/A self date N/A N/A N/A self parent N/A N/A self parent repo N/A N/A N/A d N/A parent N/A N/A N/A self parent repo name N/A N/A serialize d N/A deserialize N/A N/A self params N/A N/A N/A N/A deserialize self params N/A N/A