Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call NameLoad ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Assign NameStore Call NameLoad ListLoad Str Str keyword NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults ListLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Dict If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str orelse If BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num body If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num orelse Raise NameLoad orelse Raise NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore ListLoad Str Str If NameLoad body AugAssignAdd NameStore ListLoad Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr attr Str If CompareEq Call NameLoad NameLoad Num body Return BinOpAdd Str SubscriptLoad NameLoad Index Num orelse If BoolOpAnd CompareEq Call NameLoad NameLoad Num Call AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Slice Call NameLoad NameLoad Return BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults ListLoad ListLoad ListLoad body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad orelse Assign NameStore NameLoad Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults ListLoad body Expr Str Assign NameStore BinOpAdd ListLoad Str Str Str Str BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body If NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad Call AttributeLoad NameLoad attr attr Return Call AttributeLoad Str attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad BinOpAdd NameLoad ListLoad Str keyword NameLoad keyword NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad Num Assign NameStore Call NameLoad BinOpAdd NameLoad ListLoad Str Str Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num orelse If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad Str attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad ListLoad Str Str keyword NameLoad attr decorator_list decorator_list
N/A __future__ unicode_literals N/A logging N/A os N/A re rbtools.clients SCMClient RepositoryInfo rbtools.clients.errors TooManyRevisionsError rbtools.utils.checks check_install rbtools.utils.diffs filter_diff normalize_patterns rbtools.utils.process execute N/A USING_PARENT_PREFIX Using parent branch  BazaarClient N/A SCMClient N/A N/A 
    Bazaar client wrapper that fetches repository information and generates
    compatible diffs.

    The :class:`RepositoryInfo` object reports whether the repository supports
    parent diffs (every branch with a parent supports them).
     N/A name Bazaar N/A supports_diff_exclude_patterns True N/A can_branch True N/A INDEX_FILE_RE N/A N/A re compile ===.+'(.+?)'
 N/A BRANCH_REGEX \w*(repository branch|branch root|checkout root|checkout of branch): (?P<branch_path>.+)$ N/A REVISION_SEPARATOR_REGEX N/A N/A re compile \.\.(?![\\/]) get_repository_info N/A N/A self N/A N/A N/A 
        Find out information about the current Bazaar branch (if any) and
        return it.
         N/A N/A N/A check_install N/A bzr help N/A N/A N/A N/A logging debug Unable to execute "bzr help": skipping Bazaar N/A None N/A bzr_info N/A execute N/A bzr info ignore_errors True N/A N/A ERROR: Not a branch: bzr_info N/A N/A repository_info None N/A N/A branch_match N/A N/A re search N/A self BRANCH_REGEX bzr_info N/A re MULTILINE N/A path N/A N/A branch_match group branch_path N/A N/A path . N/A N/A path N/A N/A os getcwd N/A repository_info N/A RepositoryInfo path path base_path / supports_parent_diffs True N/A repository_info N/A parse_revision_spec N/A N/A self revisions N/A N/A N/A N/A Parses the given revision spec.

        The 'revisions' argument is a list of revisions as specified by the
        user. Items in the list do not necessarily represent a single revision,
        since the user can use SCM-native syntaxes such as "r1..r2" or "r1:r2".
        SCMTool-specific overrides of this method are expected to deal with
        such syntaxes.

        This will return a dictionary with the following keys:
            'base':        A revision to use as the base of the resulting diff.
            'tip':         A revision to use as the tip of the resulting diff.
            'parent_base': (optional) The revision to use as the base of a
                           parent diff.

        These will be used to generate the diffs to upload to Review Board (or
        print). The diff for review will include the changes in (base, tip],
        and the parent diff (if necessary) will include (parent, base].

        If a single revision is passed in, this will return the parent of that
        revision for 'base' and the passed-in revision for 'tip'.

        If zero revisions are passed in, this will return the current HEAD as
        'tip', and the upstream branch as 'base', taking into account parent
        branches explicitly specified via --parent.
         N/A n_revs N/A len revisions N/A result N/A N/A N/A n_revs 0 N/A N/A N/A result N/A tip N/A N/A self _get_revno N/A N/A result N/A base N/A N/A self _get_revno ancestor: N/A N/A N/A N/A n_revs 1 N/A n_revs 2 N/A N/A N/A n_revs 1 N/A N/A revisions N/A N/A N/A self REVISION_SEPARATOR_REGEX split N/A revisions N/A 0 N/A n_revs N/A len revisions N/A N/A n_revs 1 N/A N/A N/A result N/A base N/A N/A self _get_revno N/A before: N/A revisions N/A 0 N/A N/A result N/A tip N/A N/A self _get_revno N/A revisions N/A 0 N/A N/A N/A n_revs 2 N/A N/A N/A result N/A base N/A N/A self _get_revno N/A revisions N/A 0 N/A N/A result N/A tip N/A N/A self _get_revno N/A revisions N/A 1 N/A N/A TooManyRevisionsError N/A N/A TooManyRevisionsError N/A N/A N/A self options parent_branch N/A N/A N/A result N/A parent_base N/A result N/A base N/A N/A result N/A base N/A N/A self _get_revno N/A ancestor:%s N/A N/A self options parent_branch N/A result N/A _get_revno N/A N/A self revision_spec N/A None N/A N/A command N/A bzr revno N/A revision_spec N/A N/A command N/A -r revision_spec N/A result N/A N/A N/A N/A N/A execute command strip split N/A N/A N/A len result 1 N/A N/A N/A revno: N/A result N/A 0 N/A N/A N/A N/A N/A len result 2 N/A N/A N/A result N/A 0 startswith USING_PARENT_PREFIX N/A N/A branch N/A N/A result N/A 0 N/A N/A len USING_PARENT_PREFIX N/A N/A revno:%s:%s N/A N/A result N/A 1 branch N/A diff N/A N/A self revisions include_files exclude_patterns extra_args N/A N/A N/A N/A N/A N/A Returns the diff for the given revision spec.

        If the revision spec is empty, this returns the diff of the current
        branch with respect to its parent. If a single revision is passed in,
        this returns the diff of the change introduced in that revision. If two
        revisions are passed in, this will do a diff between those two
        revisions.

        The summary and description are set if guessing is enabled.
         N/A exclude_patterns N/A normalize_patterns exclude_patterns N/A N/A N/A self get_repository_info path N/A diff N/A N/A self _get_range_diff N/A revisions N/A base N/A revisions N/A tip include_files exclude_patterns N/A N/A parent_base revisions N/A N/A parent_diff N/A N/A self _get_range_diff N/A revisions N/A parent_base N/A revisions N/A base include_files exclude_patterns N/A N/A parent_diff None N/A N/A diff parent_diff diff parent_diff N/A _get_range_diff N/A N/A self base tip include_files exclude_patterns N/A N/A N/A N/A Return the diff between 'base' and 'tip'. N/A diff_cmd N/A N/A bzr diff -q -r N/A %s..%s N/A base tip include_files N/A diff N/A execute diff_cmd ignore_errors True log_output_on_error False split_lines True results_unicode False N/A diff N/A N/A exclude_patterns N/A N/A diff N/A filter_diff diff N/A self INDEX_FILE_RE exclude_patterns base_dir N/A N/A N/A self get_repository_info path N/A N/A N/A join diff N/A N/A None N/A get_raw_commit_message N/A N/A self revisions N/A N/A N/A log_cmd N/A bzr log -r N/A %s..%s N/A N/A revisions N/A base N/A revisions N/A tip N/A lines N/A execute N/A log_cmd N/A --line ignore_errors True split_lines True N/A n_revs N/A N/A len lines 1 N/A lines N/A execute N/A log_cmd N/A --gnu-changelog -l N/A str n_revs ignore_errors True split_lines True N/A message N/A N/A line lines N/A N/A N/A N/A line startswith N/A N/A N/A N/A message append N/A line N/A 1 N/A N/A N/A N/A N/A line strip N/A N/A N/A N/A message append line N/A N/A N/A N/A N/A join message strip N/A get_current_branch N/A N/A self N/A N/A N/A Return the name of the current branch.

        Returns:
            bytes:
            A string with the name of the current branch.
         N/A N/A N/A N/A execute N/A bzr nick ignore_errors True strip N/A N/A