Part of lp.code.model.gitrepository View In Hierarchy
IGitRepository
.Method | __init__ | Undocumented |
Method | valid_webhook_event_types | Undocumented |
Method | default_webhook_event_types | Undocumented |
Method | unique_name | Undocumented |
Method | __repr__ | Undocumented |
Method | target | See IGitRepository . |
Method | setTarget | See IGitRepository . |
Method | namespace | See IGitRepository . |
Method | setOwnerDefault | See IGitRepository . |
Method | setTargetDefault | See IGitRepository . |
Method | display_name | Undocumented |
Method | code_reviewer | See IGitRepository . |
Method | isPersonTrustedReviewer | See IGitRepository . |
Method | getInternalPath | See IGitRepository . |
Method | getCodebrowseUrl | See IGitRepository . |
Method | getCodebrowseUrlForRevision | Undocumented |
Method | git_https_url | See IGitRepository . |
Method | git_ssh_url | See IGitRepository . |
Method | private | Undocumented |
Method | refs | See IGitRepository . |
Method | branches | See IGitRepository . |
Method | branches_by_date | See IGitRepository . |
Method | default_branch 0 | See IGitRepository . |
Method | default_branch | See IGitRepository . |
Method | getRefByPath | Undocumented |
Method | createOrUpdateRefs | See IGitRepository . |
Method | removeRefs | See IGitRepository . |
Method | planRefChanges | See IGitRepository . |
Static Method | fetchRefCommits | See IGitRepository . |
Method | synchroniseRefs | See IGitRepository . |
Method | rescan | See IGitRepository . |
Method | getLatestScanJob | See IGitRepository . |
Method | visibleByUser | See IGitRepository . |
Method | getAllowedInformationTypes | See IGitRepository . |
Method | transitionToInformationType | See IGitRepository . |
Method | setName | See IGitRepository . |
Method | setOwner | See IGitRepository . |
Method | subscriptions | Undocumented |
Method | subscribers | Undocumented |
Method | userCanBeSubscribed | See IGitRepository . |
Method | subscribe | See IGitRepository . |
Method | getSubscription | See IGitRepository . |
Method | getSubscriptionsByLevel | See IGitRepository . |
Method | hasSubscription | See IGitRepository . |
Method | unsubscribe | See IGitRepository . |
Method | getNotificationRecipients | See IGitRepository . |
Method | landing_targets | See IGitRepository . |
Method | getPrecachedLandingTargets | See IGitRepository . |
Method | getActiveLandingTargets | Merge proposals not in final states where these refs are source. |
Method | landing_candidates | See IGitRepository . |
Method | getPrecachedLandingCandidates | See IGitRepository . |
Method | getActiveLandingCandidates | Merge proposals not in final states where these refs are target. |
Method | dependent_landings | See IGitRepository . |
Method | getMergeProposals | See IGitRepository . |
Method | getMergeProposalByID | See IGitRepository . |
Method | isRepositoryMergeable | See IGitRepository . |
Method | pending_updates | See IGitRepository . |
Method | updateMergeCommitIDs | See IGitRepository . |
Method | updateLandingTargets | See IGitRepository . |
Method | recipes | See IHasRecipes . |
Method | markRecipesStale | See IGitRepository . |
Method | markSnapsStale | See IGitRepository . |
Method | detectMerges | See IGitRepository . |
Method | getBlob | See IGitRepository . |
Method | getDiff | See IGitRepository . |
Method | code_import | Undocumented |
Method | rules | See IGitRepository . |
Method | getRule | See IGitRepository . |
Method | addRule | See IGitRepository . |
Method | moveRule | See IGitRepository . |
Method | grants | See IGitRepository . |
Method | findRuleGrantsByGrantee | See IGitRepository . |
Method | getRules | See IGitRepository . |
Method | setRules | See IGitRepository . |
Method | checkRefPermissions | See IGitRepository . |
Method | api_checkRefPermissions | See IGitRepository . |
Method | getActivity | See IGitRepository . |
Method | getPrecachedActivity | Undocumented |
Method | issueAccessToken | See IGitRepository . |
Method | canBeDeleted | See IGitRepository . |
Method | getDeletionRequirements | See IGitRepository . |
Method | destroySelf | See IGitRepository . |
Method | _checkPersonalPrivateOwnership | Undocumented |
Method | _reconcileAccess | Reconcile the repository's sharing information. |
Static Method | _convertRefInfo | Validate and canonicalise ref info from the hosting service. |
Method | _known_viewers | A set of known persons able to view this repository. |
Method | _api_landing_targets | Undocumented |
Method | _api_landing_candidates | Undocumented |
Method | _getRecipes | Undecorated version of recipes for use by markRecipesStale . |
Method | _markProposalMerged | Undocumented |
Method | _canonicaliseRuleOrdering | Canonicalise rule ordering. |
Method | _syncRulePositions | Synchronise rule positions with their order in a provided list. |
Static Method | _validateRules | Validate a new iterable of access rules. |
Method | _getDeletionRequirements | Determine what operations must be performed to delete this branch. |
Method | _breakReferences | Break all external references to this repository. |
Method | _deleteRepositoryAccessGrants | Delete access grants for this repository prior to deleting it. |
Method | _deleteRepositorySubscriptions | Delete subscriptions for this repository prior to deleting it. |
Method | _deleteJobs | Delete jobs for this repository prior to deleting it. |
Inherited from StormBase:
Method | __storm_invalidated__ | Flush cached properties. |
Inherited from WebhookTargetMixin:
Method | webhooks | Undocumented |
Method | newWebhook | Undocumented |
Inherited from GitIdentityMixin:
Method | shortened_path | See IGitRepository . |
Method | git_identity | See IGitRepository . |
Method | getRepositoryDefaults | See IGitRepository . |
Method | getRepositoryIdentities | See IGitRepository . |
Takes the information_type and target and makes the related AccessArtifact and AccessPolicyArtifacts match.
Parameters | info | A dict of {"object": {"sha1": sha1, "type": "commit"/"tree"/"blob"/"tag"}}. |
Returns | A dict of {"sha1": sha1, "type": GitObjectType }. | |
Raises | ValueError | if the dict is malformed. |
This method must return an empty set or repository searches will trigger late evaluation. Any 'should be set on load' properties must be done by the repository search.
If you are tempted to change this method, don't. Instead see visibleByUser which defines the just-in-time policy for repository visibility, and IGitCollection which honours visibility rules.
IGitRepository
.IGitRepository
.IGitRepository
.Exact-match rules come first in lexicographical order, followed by
wildcard rules in the requested order. (Note that sorted
is
guaranteed to be stable.)
Synchronise rule positions with their order in a provided list. :param rules: A sequence of `IGitRule`s in the desired order.
IGitRepository
.Two dictionaries are returned, one for items that must be deleted, one for items that must be altered. The item in question is the key, and the value is a user-facing string explaining why the item is affected.
As well as the dictionaries, this method returns two list of callables that may be called to perform the alterations and deletions needed.
NULLable references will be NULLed. References which are not NULLable will cause the item holding the reference to be deleted.
This function is guaranteed to perform the operations predicted by getDeletionRequirements, because it uses the same backing function.