IRepositoriesManager

Functions

Link copied to clipboard
abstract suspend fun computeDelta(versionHash: String, baseVersionHash: String?): ObjectData
Link copied to clipboard
abstract suspend fun createRepository(repositoryId: RepositoryId, userName: String?, useRoleIds: Boolean = true, legacyGlobalStorage: Boolean = false): CLVersion
Link copied to clipboard
abstract fun getBranches(repositoryId: RepositoryId): Set<BranchReference>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getVersion(branch: BranchReference): CLVersion?
abstract suspend fun getVersion(repository: RepositoryId, versionHash: String): CLVersion?
Link copied to clipboard
abstract suspend fun getVersionHash(branch: BranchReference): String?
Link copied to clipboard
abstract fun isIsolated(repository: RepositoryId): Boolean?

The data of a repository is stored separately from other repositories, but that wasn't always the case. For backwards compatibility, existing repositories remain in the global storage.

Link copied to clipboard
abstract suspend fun maybeInitAndGetSeverId(): String

Used to retrieve the server ID. If needed, the server ID is created and stored.

Link copied to clipboard
abstract suspend fun mergeChanges(branch: BranchReference, newVersionHash: String): String
Link copied to clipboard
abstract fun mergeChangesBlocking(branch: BranchReference, newVersionHash: String): String

Same as mergeChanges but blocking. Caller is expected to execute it outside the request thread.

Link copied to clipboard
abstract suspend fun pollVersionHash(branch: BranchReference, lastKnown: String?): String
Link copied to clipboard
abstract suspend fun removeBranches(repository: RepositoryId, branchNames: Set<String>)
Link copied to clipboard
abstract fun removeBranchesBlocking(repository: RepositoryId, branchNames: Set<String>)

Same as removeBranches but blocking. Caller is expected to execute it outside the request thread.

Link copied to clipboard
abstract suspend fun removeRepository(repository: RepositoryId): Boolean
Link copied to clipboard
abstract suspend fun <R> runWithRepository(repository: RepositoryId, body: suspend () -> R): R