Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad orelse Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad orelse Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return NameLoad Assign NameStore CompareGt AttributeLoad NameLoad attr Num Assign NameStore BoolOpOr CompareGt AttributeLoad NameLoad attr Num CompareGt AttributeLoad NameLoad attr Num If BoolOpAnd NameLoad NameLoad body Return NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad orelse Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return NameLoad orelse If CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad orelse Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return NameLoad orelse If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr CompareGt NameLoad NameLoad BoolOpAnd CompareEq NameLoad NameLoad CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Return NameLoad If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Pass orelse If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults UnaryOpUSub Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore ListLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Pass orelse If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str TryFinally body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num orelse Assign NameStore Str If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad orelse TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad If CompareEq NameLoad Str body If CompareNotIn NameLoad ListLoad Str Str body Raise Call NameLoad Str If CompareNotEq NameLoad Str body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Pass orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad orelse TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Pass orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Delete AttributeDel NameLoad attr decorator_list decorator_list
N/A N/A SymbolStrategy classes determine how to convert symbols. N/A re cvs2svn_lib.common FatalError cvs2svn_lib.common path_join cvs2svn_lib.common normalize_svn_path cvs2svn_lib.log logger cvs2svn_lib.symbol Trunk cvs2svn_lib.symbol TypedSymbol cvs2svn_lib.symbol Branch cvs2svn_lib.symbol Tag cvs2svn_lib.symbol ExcludedSymbol cvs2svn_lib.symbol_statistics SymbolPlanError StrategyRule N/A N/A N/A A single rule that might determine how to convert a symbol. start N/A N/A self symbol_statistics N/A N/A N/A This method is called once before get_symbol() is ever called.

    The StrategyRule can override this method to do whatever it wants
    to prepare itself for work.  SYMBOL_STATISTICS is an instance of
    SymbolStatistics containing the statistics for all symbols in all
    projects. N/A N/A get_symbol N/A N/A self symbol stats N/A N/A N/A Return an object describing what to do with the symbol in STATS.

    SYMBOL holds a Trunk or Symbol object as it has been determined so
    far.  Hopefully one of these method calls will turn any naked
    Symbol instances into TypedSymbols.

    If this rule applies to the SYMBOL (whose statistics are collected
    in STATS), then return a new or modified AbstractSymbol object.
    If this rule doesn't apply, return SYMBOL unchanged. N/A N/A NotImplementedError N/A finish N/A N/A self N/A N/A N/A This method is called once after get_symbol() is done being called.

    The StrategyRule can override this method do whatever it wants to
    release resources, etc. N/A N/A N/A _RegexpStrategyRule N/A StrategyRule N/A N/A A Strategy rule that bases its decisions on regexp matches.

  If self.regexp matches a symbol name, return self.action(symbol);
  otherwise, return the symbol unchanged. __init__ N/A N/A self pattern action N/A N/A N/A Initialize a _RegexpStrategyRule.

    PATTERN is a string that will be treated as a regexp pattern.
    PATTERN must match a full symbol name for the rule to apply (i.e.,
    it is anchored at the beginning and end of the symbol name).

    ACTION is the class representing how the symbol should be
    converted.  It should be one of the classes Branch, Tag, or
    ExcludedSymbol.

    If PATTERN matches a symbol name, then get_symbol() returns
    ACTION(name, id); otherwise it returns SYMBOL unchanged. N/A N/A N/A N/A self regexp N/A N/A re compile N/A N/A ^(?: pattern )$ N/A N/A N/A N/A re error N/A N/A N/A FatalError N/A %r is not a valid regexp. N/A pattern N/A N/A self action action N/A log N/A N/A self symbol N/A N/A N/A N/A NotImplementedError N/A get_symbol N/A N/A self symbol stats N/A N/A N/A N/A isinstance symbol N/A Trunk TypedSymbol N/A N/A symbol N/A N/A N/A N/A N/A self regexp match N/A symbol name N/A N/A N/A N/A self log symbol N/A N/A N/A self action symbol N/A N/A symbol N/A N/A ForceBranchRegexpStrategyRule N/A _RegexpStrategyRule N/A N/A Force symbols matching pattern to be branches. __init__ N/A N/A self pattern N/A N/A N/A N/A N/A _RegexpStrategyRule __init__ self pattern Branch N/A log N/A N/A self symbol N/A N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a branch because it matches regexp "%s". N/A symbol N/A N/A self regexp pattern N/A N/A ForceTagRegexpStrategyRule N/A _RegexpStrategyRule N/A N/A Force symbols matching pattern to be tags. __init__ N/A N/A self pattern N/A N/A N/A N/A N/A _RegexpStrategyRule __init__ self pattern Tag N/A log N/A N/A self symbol N/A N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a tag because it matches regexp "%s". N/A symbol N/A N/A self regexp pattern N/A N/A ExcludeRegexpStrategyRule N/A _RegexpStrategyRule N/A N/A Exclude symbols matching pattern. __init__ N/A N/A self pattern N/A N/A N/A N/A N/A _RegexpStrategyRule __init__ self pattern ExcludedSymbol N/A log N/A N/A self symbol N/A N/A N/A N/A N/A logger verbose N/A Excluding symbol %s because it matches regexp "%s". N/A symbol N/A N/A self regexp pattern N/A N/A ExcludeTrivialImportBranchRule N/A StrategyRule N/A N/A If a symbol is a trivial import branch, exclude it.

  A trivial import branch is defined to be a branch that only had a
  single import on it (no other kinds of commits) in every file in
  which it appeared.  In most cases these branches are worthless. get_symbol N/A N/A self symbol stats N/A N/A N/A N/A isinstance symbol N/A Trunk TypedSymbol N/A N/A symbol N/A N/A N/A N/A stats tag_create_count 0 N/A N/A stats branch_create_count N/A stats trivial_import_count N/A N/A N/A N/A logger verbose N/A Excluding branch %s because it is a trivial import branch. N/A symbol N/A N/A ExcludedSymbol symbol N/A N/A symbol N/A N/A ExcludeVendorBranchRule N/A StrategyRule N/A N/A If a symbol is a pure vendor branch, exclude it.

  A pure vendor branch is defined to be a branch that only had imports
  on it (no other kinds of commits) in every file in which it
  appeared. get_symbol N/A N/A self symbol stats N/A N/A N/A N/A isinstance symbol N/A Trunk TypedSymbol N/A N/A symbol N/A N/A N/A N/A stats tag_create_count 0 N/A N/A stats branch_create_count N/A stats pure_ntdb_count N/A N/A N/A N/A logger verbose N/A Excluding branch %s because it is a pure vendor branch. N/A symbol N/A N/A ExcludedSymbol symbol N/A N/A symbol N/A N/A UnambiguousUsageRule N/A StrategyRule N/A N/A If a symbol is used unambiguously as a tag/branch, convert it as such. get_symbol N/A N/A self symbol stats N/A N/A N/A N/A isinstance symbol N/A Trunk TypedSymbol N/A N/A symbol N/A is_tag N/A N/A stats tag_create_count 0 N/A is_branch N/A N/A N/A stats branch_create_count 0 N/A N/A stats branch_commit_count 0 N/A N/A is_tag is_branch N/A N/A symbol N/A N/A is_branch N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a branch because it is always used as a branch. N/A symbol N/A N/A Branch symbol N/A N/A is_tag N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a tag because it is always used as a tag. N/A symbol N/A N/A Tag symbol N/A N/A symbol N/A N/A BranchIfCommitsRule N/A StrategyRule N/A N/A If there was ever a commit on the symbol, convert it as a branch. get_symbol N/A N/A self symbol stats N/A N/A N/A N/A isinstance symbol N/A Trunk TypedSymbol N/A N/A symbol N/A N/A N/A N/A stats branch_commit_count 0 N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a branch because there are commits on it. N/A symbol N/A N/A Branch symbol N/A N/A symbol N/A N/A HeuristicStrategyRule N/A StrategyRule N/A N/A Convert symbol based on how often it was used as a branch/tag.

  Whichever happened more often determines how the symbol is
  converted. get_symbol N/A N/A self symbol stats N/A N/A N/A N/A isinstance symbol N/A Trunk TypedSymbol N/A N/A symbol N/A N/A N/A N/A stats tag_create_count N/A stats branch_create_count N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a tag because it is more often used as a tag. N/A symbol N/A N/A Tag symbol N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a branch because it is more often used as a branch. N/A symbol N/A N/A Branch symbol N/A N/A _CatchAllRule N/A StrategyRule N/A N/A Base class for catch-all rules.

  Usually this rule will appear after a list of more careful rules
  (including a general rule like UnambiguousUsageRule) and will
  therefore only apply to the symbols not handled earlier. __init__ N/A N/A self action N/A N/A N/A N/A self _action action N/A log N/A N/A self symbol N/A N/A N/A N/A NotImplementedError N/A get_symbol N/A N/A self symbol stats N/A N/A N/A N/A isinstance symbol N/A Trunk TypedSymbol N/A N/A symbol N/A N/A N/A N/A self log symbol N/A N/A N/A self _action symbol N/A N/A AllBranchRule N/A _CatchAllRule N/A N/A Convert all symbols as branches.

  Usually this rule will appear after a list of more careful rules
  (including a general rule like UnambiguousUsageRule) and will
  therefore only apply to the symbols not handled earlier. __init__ N/A N/A self N/A N/A N/A N/A N/A _CatchAllRule __init__ self Branch N/A log N/A N/A self symbol N/A N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a branch because no other rules applied. N/A symbol N/A N/A AllTagRule N/A _CatchAllRule N/A N/A Convert all symbols as tags.

  We don't worry about conflicts here; they will be caught later by
  SymbolStatistics.check_consistency().

  Usually this rule will appear after a list of more careful rules
  (including a general rule like UnambiguousUsageRule) and will
  therefore only apply to the symbols not handled earlier. __init__ N/A N/A self N/A N/A N/A N/A N/A _CatchAllRule __init__ self Tag N/A log N/A N/A self symbol N/A N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a tag because no other rules applied. N/A symbol N/A N/A AllExcludedRule N/A _CatchAllRule N/A N/A Exclude all symbols.

  Usually this rule will appear after a list of more careful rules
  (including a SymbolHintsFileRule or several ManualSymbolRules)
  and will therefore only apply to the symbols not handled earlier. __init__ N/A N/A self N/A N/A N/A N/A N/A _CatchAllRule __init__ self ExcludedSymbol N/A log N/A N/A self symbol N/A N/A N/A N/A N/A logger verbose N/A Excluding symbol %s by catch-all rule. N/A symbol N/A N/A TrunkPathRule N/A StrategyRule N/A N/A Set the base path for Trunk. __init__ N/A N/A self trunk_path N/A N/A N/A N/A self trunk_path trunk_path N/A get_symbol N/A N/A self symbol stats N/A N/A N/A N/A N/A isinstance symbol Trunk N/A N/A symbol base_path None N/A N/A N/A symbol base_path N/A self trunk_path N/A symbol N/A N/A SymbolPathRule N/A StrategyRule N/A N/A Set the base paths for symbol LODs. __init__ N/A N/A self symbol_type base_path N/A N/A N/A N/A self symbol_type symbol_type N/A N/A self base_path base_path N/A get_symbol N/A N/A self symbol stats N/A N/A N/A N/A N/A isinstance symbol N/A self symbol_type N/A N/A symbol base_path None N/A N/A N/A symbol base_path N/A path_join N/A self base_path N/A symbol name N/A symbol N/A N/A BranchesPathRule N/A SymbolPathRule N/A N/A Set the base paths for Branch LODs. __init__ N/A N/A self branch_path N/A N/A N/A N/A N/A SymbolPathRule __init__ self Branch branch_path N/A N/A TagsPathRule N/A SymbolPathRule N/A N/A Set the base paths for Tag LODs. __init__ N/A N/A self tag_path N/A N/A N/A N/A N/A SymbolPathRule __init__ self Tag tag_path N/A N/A HeuristicPreferredParentRule N/A StrategyRule N/A N/A Use a heuristic rule to pick preferred parents.

  Pick the parent that should be preferred for any TypedSymbols.  As
  parent, use the symbol that appeared most often as a possible parent
  of the symbol in question.  If multiple symbols are tied, choose the
  one that comes first according to the Symbol class's natural sort
  order. _get_preferred_parent N/A N/A self stats N/A N/A N/A Return the LODs that are most often possible parents in STATS.

    Return the set of LinesOfDevelopment that appeared most often as
    possible parents.  The return value might contain multiple symbols
    if multiple LinesOfDevelopment appeared the same number of times. N/A best_count -1 N/A best_symbol None N/A N/A symbol count N/A N/A N/A stats possible_parents items N/A N/A N/A N/A count best_count N/A N/A count best_count N/A symbol best_symbol N/A N/A best_count count N/A best_symbol symbol N/A N/A best_symbol None N/A N/A None N/A N/A best_symbol N/A get_symbol N/A N/A self symbol stats N/A N/A N/A N/A N/A isinstance symbol TypedSymbol N/A N/A symbol preferred_parent_id None N/A N/A preferred_parent N/A N/A self _get_preferred_parent stats N/A N/A preferred_parent None N/A N/A N/A N/A logger verbose N/A %s has no preferred parent N/A symbol N/A N/A N/A symbol preferred_parent_id N/A preferred_parent id N/A N/A N/A logger verbose N/A The preferred parent of %s is %s N/A symbol preferred_parent N/A symbol N/A N/A ManualTrunkRule N/A StrategyRule N/A N/A Change the SVN path of Trunk LODs.

  Members:

    project_id -- (int or None) The id of the project whose trunk
        should be affected by this rule.  If project_id is None, then
        the rule is not project-specific.

    svn_path -- (str) The SVN path that should be used as the base
        directory for this trunk.  This member must not be None,
        though it may be the empty string for a single-project,
        trunk-only conversion.

   __init__ N/A N/A self project_id svn_path N/A N/A N/A N/A self project_id project_id N/A N/A self svn_path N/A normalize_svn_path svn_path allow_empty True N/A get_symbol N/A N/A self symbol stats N/A N/A N/A N/A N/A N/A self project_id None N/A N/A self project_id N/A N/A N/A stats lod project id N/A N/A symbol N/A N/A isinstance symbol Trunk N/A N/A N/A symbol base_path N/A self svn_path N/A symbol N/A N/A convert_as_branch N/A N/A symbol N/A N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a branch because of manual setting. N/A symbol N/A N/A Branch symbol N/A convert_as_tag N/A N/A symbol N/A N/A N/A N/A N/A logger verbose N/A Converting symbol %s as a tag because of manual setting. N/A symbol N/A N/A Tag symbol N/A exclude N/A N/A symbol N/A N/A N/A N/A N/A logger verbose N/A Excluding symbol %s because of manual setting. N/A symbol N/A N/A ExcludedSymbol symbol N/A ManualSymbolRule N/A StrategyRule N/A N/A Change how particular symbols are converted.

  Members:

    project_id -- (int or None) The id of the project whose trunk
        should be affected by this rule.  If project_id is None, then
        the rule is not project-specific.

    symbol_name -- (str) The name of the symbol that should be
        affected by this rule.

    conversion -- (callable or None) A callable that converts the
        symbol to its preferred output type.  This should normally be
        one of (convert_as_branch, convert_as_tag, exclude).  If this
        member is None, then this rule does not affect the symbol's
        output type.

    svn_path -- (str) The SVN path that should be used as the base
        directory for this trunk.  This member must not be None,
        though it may be the empty string for a single-project,
        trunk-only conversion.

    parent_lod_name -- (str or None) The name of the line of
        development that should be preferred as the parent of this
        symbol.  (The preferred parent is the line of development from
        which the symbol should sprout.)  If this member is set to the
        string '.trunk.', then the symbol will be set to sprout
        directly from trunk.  If this member is set to None, then this
        rule won't affect the symbol's parent.

   __init__ N/A N/A self project_id symbol_name conversion svn_path parent_lod_name N/A N/A N/A N/A self project_id project_id N/A N/A self symbol_name symbol_name N/A N/A self conversion conversion N/A N/A svn_path None N/A N/A N/A self svn_path None N/A N/A N/A self svn_path N/A normalize_svn_path svn_path allow_empty True N/A N/A self parent_lod_name parent_lod_name N/A _get_parent_by_id N/A N/A self parent_lod_name stats N/A N/A N/A Return the LOD object for the parent with name PARENT_LOD_NAME.

    STATS is the _Stats object describing a symbol whose parent needs
    to be determined from its name.  If none of its possible parents
    has name PARENT_LOD_NAME, raise a SymbolPlanError. N/A pp N/A N/A N/A stats possible_parents keys N/A N/A N/A isinstance pp Trunk N/A N/A N/A N/A N/A N/A pp name parent_lod_name N/A N/A pp N/A N/A parent_counts N/A N/A N/A stats possible_parents items N/A N/A N/A parent_counts sort N/A N/A N/A a b N/A N/A N/A cmp N/A a N/A 1 N/A b N/A 1 N/A lines N/A N/A %s is not a valid parent for %s; N/A parent_lod_name N/A stats lod     possible parents (with counts): N/A N/A symbol count parent_counts N/A N/A N/A isinstance symbol Trunk N/A N/A N/A N/A lines append N/A         .trunk. : %d count N/A N/A N/A N/A lines append N/A         %s : %d N/A N/A symbol name count N/A N/A SymbolPlanError N/A N/A join lines N/A get_symbol N/A N/A self symbol stats N/A N/A N/A N/A N/A N/A self project_id None N/A N/A self project_id N/A N/A N/A stats lod project id N/A N/A symbol N/A N/A N/A isinstance symbol Trunk N/A N/A symbol N/A N/A N/A N/A self symbol_name N/A N/A stats lod name N/A N/A N/A N/A self conversion None N/A N/A symbol N/A N/A self conversion symbol N/A N/A N/A self parent_lod_name None N/A N/A N/A N/A N/A N/A self parent_lod_name .trunk. N/A N/A N/A symbol preferred_parent_id N/A N/A N/A stats lod project trunk_id N/A N/A N/A symbol preferred_parent_id N/A N/A N/A self _get_parent_by_id N/A self parent_lod_name stats id N/A N/A N/A self svn_path None N/A N/A N/A symbol base_path N/A self svn_path N/A symbol N/A N/A SymbolHintsFileRule N/A StrategyRule N/A N/A Use manual symbol configurations read from a file.

  The input file is line-oriented with the following format:

      <project-id> <symbol-name> <conversion> [<svn-path> [<parent-lod-name>]]

  Where the fields are separated by whitespace and

      project-id -- the numerical id of the Project to which the
          symbol belongs (numbered starting with 0).  This field can
          be '.' if the rule is not project-specific.

      symbol-name -- the name of the symbol being specified, or
          '.trunk.' if the rule should apply to trunk.

      conversion -- how the symbol should be treated in the
          conversion.  This is one of the following values: 'branch',
          'tag', or 'exclude'.  This field can be '.' if the rule
          shouldn't affect how the symbol is treated in the
          conversion.

      svn-path -- the SVN path that should serve as the root path of
          this LOD.  The path should be expressed as a path relative
          to the SVN root directory, with or without a leading '/'.
          This field can be omitted or '.' if the rule shouldn't
          affect the LOD's SVN path.

      parent-lod-name -- the name of the LOD that should serve as this
          symbol's parent.  This field can be omitted or '.'  if the
          rule shouldn't affect the symbol's parent, or it can be
          '.trunk.' to indicate that the symbol should sprout from the
          project's trunk. N/A comment_re N/A N/A re compile ^(\#|$) N/A conversion_map N/A branch tag exclude . convert_as_branch convert_as_tag exclude None __init__ N/A N/A self filename N/A N/A N/A N/A self filename filename N/A start N/A N/A self symbol_statistics N/A N/A N/A N/A self _rules N/A N/A f N/A open N/A self filename r N/A N/A N/A l f N/A N/A l N/A N/A l rstrip N/A s N/A N/A l lstrip N/A N/A N/A N/A self comment_re match s N/A N/A N/A fields N/A N/A s split N/A N/A N/A len fields 3 N/A N/A N/A FatalError N/A The following line in "%s" cannot be parsed:
    "%s" N/A N/A self filename l N/A project_id N/A N/A fields pop 0 N/A symbol_name N/A N/A fields pop 0 N/A conversion N/A N/A fields pop 0 N/A fields N/A N/A svn_path N/A N/A fields pop 0 N/A N/A svn_path . N/A N/A svn_path None N/A N/A N/A N/A svn_path N/A 0 / N/A N/A svn_path N/A svn_path N/A 1 N/A N/A svn_path None N/A fields N/A N/A parent_lod_name N/A N/A fields pop 0 N/A N/A parent_lod_name . N/A fields N/A N/A N/A FatalError N/A The following line in "%s" cannot be parsed:
    "%s" N/A N/A self filename l N/A N/A project_id . N/A N/A project_id None N/A N/A N/A N/A project_id N/A int project_id N/A N/A N/A ValueError N/A N/A N/A FatalError N/A Illegal project_id in the following line:
    "%s" N/A l N/A N/A symbol_name .trunk. N/A N/A N/A conversion N/A . trunk N/A N/A N/A FatalError Trunk cannot be converted as a different type N/A N/A parent_lod_name . N/A N/A N/A FatalError Trunk's parent cannot be set N/A N/A svn_path None N/A N/A N/A N/A N/A N/A N/A self _rules append N/A ManualTrunkRule project_id svn_path N/A N/A N/A N/A conversion N/A N/A self conversion_map N/A conversion N/A N/A N/A KeyError N/A N/A N/A FatalError N/A Illegal conversion in the following line:
    "%s" N/A l N/A N/A parent_lod_name . N/A N/A parent_lod_name None N/A N/A N/A conversion None N/A svn_path None N/A parent_lod_name None N/A N/A N/A N/A N/A N/A N/A self _rules append N/A ManualSymbolRule project_id symbol_name conversion svn_path parent_lod_name N/A N/A N/A N/A f close N/A rule N/A self _rules N/A N/A N/A N/A rule start symbol_statistics N/A get_symbol N/A N/A self symbol stats N/A N/A N/A rule N/A self _rules N/A N/A symbol N/A N/A rule get_symbol symbol stats N/A symbol N/A finish N/A N/A self N/A N/A N/A rule N/A self _rules N/A N/A N/A N/A rule finish N/A N/A self _rules N/A N/A